Tsh161 — ShapeUpgrade_ShellSewing.Apply with-history-tracking

§12.3a

crash topology

Sources

Description

ShapeUpgrade_ShellSewing.Apply with-history-tracking

Reproducer recipe

Expected kernel behavior

Live oracle measurement: OCCT crashes (SIGSEGV) reading this file, on both the heal-on and heal-off path. Two triangles share edge e01 exactly, but the third vertex of the second triangle is offset by 0.001 units in z from where the first triangle's geometry would place it — inside typical sewing tolerance but well outside the file's declared 1e-7 accuracy. A kernel must never crash on this input: any merge or adjustment made to reconcile near-coincident geometry during sewing must be recorded (which vertices/edges moved, and by how much) so the operation is auditable, not applied as an untracked silent adjustment.

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh161 - ShapeUpgrade_ShellSewing.Apply with-history-tracking
3 * Defect: Sewing operation that should record geometry changes in a history map.
4 * Apply produces correct shell but history doesn't reflect intermediate states. */
5HEADER;
6FILE_DESCRIPTION(('Tsh161 test case','Shell sewing without history tracking'),'2;1');
7FILE_NAME('Tsh161.stp','2026-06-15T00:00:00',(''),(''),'auto-generated','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13/* Two triangular faces sharing one edge but with slightly misaligned geometry */
14#100=CARTESIAN_POINT('v0',(0.0,0.0,0.0));
15#101=CARTESIAN_POINT('v1',(1.0,0.0,0.0));
16#102=CARTESIAN_POINT('v2',(0.5,0.866,0.0));
17#103=CARTESIAN_POINT('v3',(0.5,0.866,0.001));
18#110=VERTEX_POINT('',#100); #111=VERTEX_POINT('',#101);
19#112=VERTEX_POINT('',#102); #113=VERTEX_POINT('',#103);
20/* Edges */
21#200=DIRECTION('',(1.0,0.0,0.0));
22#201=VECTOR('',#200,1.0);
23#202=DIRECTION('',(0.0,0.866,0.0));
24#203=VECTOR('',#202,1.0);
25#204=DIRECTION('',(0.0,0.866,0.001));
26#205=VECTOR('',#204,1.0);
27#210=LINE('e01_shared',#100,#201); #211=EDGE_CURVE('',#110,#111,#210,.T.);
28#212=LINE('e02_face1',#100,#202); #213=EDGE_CURVE('',#110,#112,#212,.T.);
29#214=LINE('e12_face1',#101,#202); #215=EDGE_CURVE('',#111,#112,#214,.T.);
30#216=LINE('e03_face2',#100,#204); #217=EDGE_CURVE('',#110,#113,#216,.T.);
31#218=LINE('e13_face2',#101,#204); #219=EDGE_CURVE('',#111,#113,#218,.T.);
32/* Face 1: triangle (0,1,2) */
33#300=ORIENTED_EDGE('',*,*,#211,.T.);
34#301=ORIENTED_EDGE('',*,*,#215,.T.);
35#302=ORIENTED_EDGE('',*,*,#213,.F.);
36#303=EDGE_LOOP('',(#300,#301,#302));
37#304=FACE_OUTER_BOUND('',#303,.T.);
38#305=AXIS2_PLACEMENT_3D('',#100,#202,#200);
39#306=PLANE('',#305);
40#310=ADVANCED_FACE('f1',(#304),#306,.T.);
41/* Face 2: triangle (0,1,3) sharing edge 01 */
42#320=ORIENTED_EDGE('',*,*,#211,.T.);
43#321=ORIENTED_EDGE('',*,*,#219,.T.);
44#322=ORIENTED_EDGE('',*,*,#217,.F.);
45#323=EDGE_LOOP('',(#320,#321,#322));
46#324=FACE_OUTER_BOUND('',#323,.T.);
47#325=AXIS2_PLACEMENT_3D('',#100,#204,#200);
48#326=PLANE('',#325);
49#330=ADVANCED_FACE('f2',(#324),#326,.T.);
50#400=OPEN_SHELL('two_triangles_misaligned',(#310,#330));
51#9000=PRODUCT_CONTEXT('',#1,'mechanical');
52#9001=PRODUCT('Tsh161','Tsh161','',(#9000));
53#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
54#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
55#9004=PRODUCT_DEFINITION('','',#9002,#9003);
56#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
57#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
58#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
59#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
60#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
61#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
62#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#400));
63#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
64#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
65ENDSEC;
66END-ISO-10303-21;