Tsh115 — orientation flag mismatch (CLOSED_SHELL single face)

§12.3a

crash topology

Sources

Description

orientation flag mismatch (CLOSED_SHELL single face)

Reproducer recipe

Expected kernel behavior

The single-face CLOSED_SHELL has a FACE_OUTER_BOUND loop that runs counter-clockwise about the PLANE's +Z reference direction, but the FACE_OUTER_BOUND orientation flag itself is .F. and the ADVANCED_FACE's own same_sense is also .F. — two independent reversal flags on the same face. Compose both flags together with the loop's authored winding to get the single true outward direction (here, the double reversal cancels and the material-side normal is +Z as originally authored); do not treat either flag in isolation as decisive, or a doubly-reversed face is misread as inverted when it is not.

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/* Tsh115 - single PLANE face with same_sense=.F.
3 * Defect: single PLANE face in CLOSED_SHELL with orientation flag reversed;
4 * content normal naturally points outward, creating consistency-vs-flag mismatch. */
5HEADER;
6FILE_DESCRIPTION(('Tsh115 - orientation flag mismatch','wave 20'),'2;1');
7FILE_NAME('Tsh115.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/* Single planar quad face (degenerate "closed" shell) */
15
16#10=CARTESIAN_POINT('',(0,0,0));
17#11=CARTESIAN_POINT('',(10.0,0,0));
18#12=CARTESIAN_POINT('',(10.0,10.0,0));
19#13=CARTESIAN_POINT('',(0,10.0,0));
20
21/* Vertices */
22#20=VERTEX_POINT('',#10);
23#21=VERTEX_POINT('',#11);
24#22=VERTEX_POINT('',#12);
25#23=VERTEX_POINT('',#13);
26
27/* Plane (normal points in +Z) */
28#30=AXIS2_PLACEMENT_3D('plane',#10,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
29#31=PLANE('',#30);
30
31/* Edges (counter-clockwise when viewed from +Z) */
32#40=LINE('',#10,VECTOR('',(1,0,0),10.0));
33#41=EDGE_CURVE('e1',#20,#21,#40,.T.);
34#42=LINE('',#11,VECTOR('',(0,1,0),10.0));
35#43=EDGE_CURVE('e2',#21,#22,#42,.T.);
36#44=LINE('',#12,VECTOR('',(-1,0,0),10.0));
37#45=EDGE_CURVE('e3',#22,#23,#44,.T.);
38#46=LINE('',#13,VECTOR('',(0,-1,0),10.0));
39#47=EDGE_CURVE('e4',#23,#20,#46,.T.);
40
41/* Edge loop */
42#50=ORIENTED_EDGE('',*,*,#41,.T.);
43#51=ORIENTED_EDGE('',*,*,#43,.T.);
44#52=ORIENTED_EDGE('',*,*,#45,.T.);
45#53=ORIENTED_EDGE('',*,*,#47,.T.);
46#54=EDGE_LOOP('outer_loop',(#50,#51,#52,#53));
47
48/* Face bound - with same_sense=.F. to create mismatch */
49#60=FACE_OUTER_BOUND('',#54,.F.);
50
51/* Face - orientation flag contradicts geometric normal */
52#70=ADVANCED_FACE('flagged_face',(#60),#31,.F.);
53
54/* Closed shell with single face */
55#80=CLOSED_SHELL('single_face_shell',(#70));
56
57/* Mandatory PRODUCT chain */
58#9000=PRODUCT_CONTEXT('',#1,'mechanical');
59#9001=PRODUCT('Tsh115','Tsh115','',(#9000));
60#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
61#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
62#9004=PRODUCT_DEFINITION('','',#9002,#9003);
63#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
64#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
65#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
66#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
67#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
68#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
69#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#80));
70#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
71#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
72ENDSEC;
73END-ISO-10303-21;