Tsh128 — ShapeFix_Shell.FixFaceOrientation early-exit

§12.3a

crash topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation early-exit

Reproducer recipe

Expected kernel behavior

Two of the five faces are individually broken: the x=0 face's three-edge loop contains an edge whose `LINE` lies along x=0, y=10 while its declared end vertex is (0,0,10), and the x=10 face uses two edges whose `LINE`s carry a zero-magnitude `VECTOR`. Validate each edge against its own curve and vertices before the shell-level pass, and keep any such failure local to its face: record the diagnostic, set that face aside, and continue so the remaining faces still receive a consistent orientation. A per-face failure must never short-circuit the shell pass and leave later faces unprocessed.

Notes

RUNTIME-VERIFIED 2026-08-09 — this file's recorded `signal(11)` is driven by an inline entity instance written directly inside another entity's argument list (a vector constructor carrying a bare coordinate list where a direction reference belongs). A conforming exchange file may only define entity instances as top-level numbered statements, so the reader cannot bind the inline construct, the attribute resolves to null, and the abort happens during loading — before any repair routine runs. Full census in `BACKLOG.md` (M.18).

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/* Tsh128 - ShapeFix_Shell.FixFaceOrientation early-exit
3 * Defect: Perform's early-exit condition (myStatus contains FAIL2) triggers on
4 * a false positive, halting before all faces are processed */
5HEADER;
6FILE_DESCRIPTION(('Tsh128 - shell where early-exit halts face processing prematurely','wave 26'),'2;1');
7FILE_NAME('Tsh128.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
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
14/* Shell with 5 faces where processing face 2 causes false FAIL2 status,
15 * triggering early exit before faces 3-5 are processed.
16 * Face 1: bottom (0,0,0)-(10,0,0)-(10,10,0)-(0,10,0) normal OK
17 * Face 2: left side with edge touching face 1 at non-vertex point (causes false-positive error)
18 * Faces 3-5: remaining sides that won't be processed due to early exit */
19
20#10=CARTESIAN_POINT('',(0,0,0));
21#11=CARTESIAN_POINT('',(10.0,0,0));
22#12=CARTESIAN_POINT('',(10.0,10.0,0));
23#13=CARTESIAN_POINT('',(0,10.0,0));
24#14=CARTESIAN_POINT('',(0,0,10.0));
25#15=CARTESIAN_POINT('',(10.0,0,10.0));
26#16=CARTESIAN_POINT('',(10.0,10.0,10.0));
27#17=CARTESIAN_POINT('',(0,10.0,10.0));
28#18=CARTESIAN_POINT('',(5.0,0,0));
29#19=CARTESIAN_POINT('',(5.0,0,10.0));
30
31#20=VERTEX_POINT('',#10);
32#21=VERTEX_POINT('',#11);
33#22=VERTEX_POINT('',#12);
34#23=VERTEX_POINT('',#13);
35#24=VERTEX_POINT('',#14);
36#25=VERTEX_POINT('',#15);
37#26=VERTEX_POINT('',#16);
38#27=VERTEX_POINT('',#17);
39#28=VERTEX_POINT('',#18);
40#29=VERTEX_POINT('',#19);
41
42/* Planes */
43#30=AXIS2_PLACEMENT_3D('z0_plane',#10,DIRECTION('',(0,0,-1)),DIRECTION('',(1,0,0)));
44#31=PLANE('',#30);
45#32=AXIS2_PLACEMENT_3D('x0_plane',#10,DIRECTION('',(-1,0,0)),DIRECTION('',(0,1,0)));
46#33=PLANE('',#32);
47#34=AXIS2_PLACEMENT_3D('y0_plane',#10,DIRECTION('',(0,-1,0)),DIRECTION('',(1,0,0)));
48#35=PLANE('',#34);
49#36=AXIS2_PLACEMENT_3D('y10_plane',#13,DIRECTION('',(0,1,0)),DIRECTION('',(1,0,0)));
50#37=PLANE('',#36);
51#38=AXIS2_PLACEMENT_3D('x10_plane',#11,DIRECTION('',(1,0,0)),DIRECTION('',(0,1,0)));
52#39=PLANE('',#38);
53
54/* Face 1 (bottom) edges */
55#50=LINE('',#10,VECTOR('',(1,0,0),10.0));
56#51=EDGE_CURVE('f1_e1',#20,#21,#50,.T.);
57#52=LINE('',#11,VECTOR('',(0,1,0),10.0));
58#53=EDGE_CURVE('f1_e2',#21,#22,#52,.T.);
59#54=LINE('',#12,VECTOR('',(-1,0,0),10.0));
60#55=EDGE_CURVE('f1_e3',#22,#23,#54,.T.);
61#56=LINE('',#13,VECTOR('',(0,-1,0),10.0));
62#57=EDGE_CURVE('f1_e4',#23,#20,#56,.T.);
63
64/* Face 2 (left) edges - with mid-edge touching (non-vertex contact) */
65#60=LINE('',#10,VECTOR('',(0,1,0),10.0));
66#61=EDGE_CURVE('f2_e1',#20,#23,#60,.T.);
67#62=LINE('',#13,VECTOR('',(0,0,1),10.0));
68#63=EDGE_CURVE('f2_e2',#23,#24,#62,.T.);
69#64=LINE('',#14,VECTOR('',(0,-1,0),10.0));
70#65=EDGE_CURVE('f2_e3',#24,#20,#64,.T.);
71
72/* Face 3 (front) edges */
73#70=LINE('',#10,VECTOR('',(1,0,0),10.0));
74#71=EDGE_CURVE('f3_e1',#20,#21,#70,.T.);
75#72=LINE('',#11,VECTOR('',(0,0,1),10.0));
76#73=EDGE_CURVE('f3_e2',#21,#25,#72,.T.);
77#74=LINE('',#15,VECTOR('',(-1,0,0),10.0));
78#75=EDGE_CURVE('f3_e3',#25,#24,#74,.T.);
79#76=LINE('',#14,VECTOR('',(0,0,-1),10.0));
80#77=EDGE_CURVE('f3_e4',#24,#20,#76,.T.);
81
82/* Face 4 (back) edges */
83#80=LINE('',#13,VECTOR('',(0,0,1),10.0));
84#81=EDGE_CURVE('f4_e1',#23,#27,#80,.T.);
85#82=LINE('',#17,VECTOR('',(1,0,0),10.0));
86#83=EDGE_CURVE('f4_e2',#27,#26,#82,.T.);
87#84=LINE('',#16,VECTOR('',(0,0,-1),10.0));
88#85=EDGE_CURVE('f4_e3',#26,#22,#84,.T.);
89#86=LINE('',#12,VECTOR('',(-1,0,0),10.0));
90#87=EDGE_CURVE('f4_e4',#22,#23,#86,.T.);
91
92/* Face 5 (right) edges */
93#90=LINE('',#11,VECTOR('',(1,0,0),0.0));
94#91=EDGE_CURVE('f5_e1',#21,#25,#90,.T.);
95#92=LINE('',#15,VECTOR('',(0,1,0),10.0));
96#93=EDGE_CURVE('f5_e2',#25,#26,#92,.T.);
97#94=LINE('',#16,VECTOR('',(-1,0,0),0.0));
98#95=EDGE_CURVE('f5_e3',#26,#22,#94,.T.);
99#96=LINE('',#12,VECTOR('',(0,-1,0),10.0));
100#97=EDGE_CURVE('f5_e4',#22,#21,#96,.T.);
101
102/* Face 1 edge loop */
103#100=ORIENTED_EDGE('',*,*,#51,.T.);
104#101=ORIENTED_EDGE('',*,*,#53,.T.);
105#102=ORIENTED_EDGE('',*,*,#55,.T.);
106#103=ORIENTED_EDGE('',*,*,#57,.T.);
107#104=EDGE_LOOP('f1_loop',(#100,#101,#102,#103));
108
109/* Face 2 edge loop (triggers false FAIL2) */
110#110=ORIENTED_EDGE('',*,*,#61,.T.);
111#111=ORIENTED_EDGE('',*,*,#63,.T.);
112#112=ORIENTED_EDGE('',*,*,#65,.T.);
113#114=EDGE_LOOP('f2_loop',(#110,#111,#112));
114
115/* Face 3 edge loop */
116#120=ORIENTED_EDGE('',*,*,#71,.T.);
117#121=ORIENTED_EDGE('',*,*,#73,.T.);
118#122=ORIENTED_EDGE('',*,*,#75,.T.);
119#123=ORIENTED_EDGE('',*,*,#77,.T.);
120#124=EDGE_LOOP('f3_loop',(#120,#121,#122,#123));
121
122/* Face 4 edge loop */
123#130=ORIENTED_EDGE('',*,*,#81,.T.);
124#131=ORIENTED_EDGE('',*,*,#83,.T.);
125#132=ORIENTED_EDGE('',*,*,#85,.T.);
126#133=ORIENTED_EDGE('',*,*,#87,.T.);
127#134=EDGE_LOOP('f4_loop',(#130,#131,#132,#133));
128
129/* Face 5 edge loop */
130#140=ORIENTED_EDGE('',*,*,#91,.T.);
131#141=ORIENTED_EDGE('',*,*,#93,.T.);
132#142=ORIENTED_EDGE('',*,*,#95,.T.);
133#143=ORIENTED_EDGE('',*,*,#97,.T.);
134#144=EDGE_LOOP('f5_loop',(#140,#141,#142,#143));
135
136/* Face bounds */
137#150=FACE_OUTER_BOUND('',#104,.T.);
138#151=FACE_OUTER_BOUND('',#114,.T.);
139#152=FACE_OUTER_BOUND('',#124,.T.);
140#153=FACE_OUTER_BOUND('',#134,.T.);
141#154=FACE_OUTER_BOUND('',#144,.T.);
142
143/* Faces */
144#160=ADVANCED_FACE('f1',(#150),#31,.T.);
145#161=ADVANCED_FACE('f2_problem',(#151),#33,.T.);
146#162=ADVANCED_FACE('f3',(#152),#35,.T.);
147#163=ADVANCED_FACE('f4',(#153),#36,.T.);
148#164=ADVANCED_FACE('f5',(#154),#39,.T.);
149
150/* Shell with problematic face causing early exit */
151#200=OPEN_SHELL('early_exit_shell',(#160,#161,#162,#163,#164));
152
153/* Mandatory PRODUCT chain */
154#9000=PRODUCT_CONTEXT('',#1,'mechanical');
155#9001=PRODUCT('Tsh128','Tsh128','',(#9000));
156#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
157#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
158#9004=PRODUCT_DEFINITION('','',#9002,#9003);
159#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
160#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
161#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
162#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
163#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
164#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
165#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#200));
166#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
167#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
168ENDSEC;
169END-ISO-10303-21;