Tsh112 — ShapeFix_Shell.FixFaceOrientation T-junction ambiguity

§12.3a

crash topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation T-junction ambiguity

Reproducer recipe

Expected kernel behavior

Three faces meet along the line x=0, z=0 — two coplanar quads at z=0 and one vertical quad spanning y in [-1, 1] — but each owns private, coincident copies of the boundary edge and its vertices, and relative to their own surface normals the first quad's loop runs counter-clockwise while the other two run clockwise. Sew the coincident boundaries into shared edges first, then correct winding from the loops' signed areas rather than from traversal comparisons, since before sewing there are no shared edges to compare. Because the resulting line carries three face uses, no single globally consistent outward orientation exists: group the faces that can agree, emit the remainder as a separate shell, and report the non-manifold edge instead of flipping a face to satisfy an unsatisfiable constraint.

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/* Tsh112 - ShapeFix_Shell.FixFaceOrientation T-junction shell
3 * Defect: three faces meeting at a single edge (one inner, two outer);
4 * orientation propagation has to pick which neighbor to follow. */
5HEADER;
6FILE_DESCRIPTION(('Tsh112 - T-junction three-face edge','wave 19'),'2;1');
7FILE_NAME('Tsh112.stp','2026-06-15T00:00:00',(''),(''),'heal coverage','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
9ENDSEC;
10DATA;
11#1=APPLICATION_CONTEXT('automotive_design');
12#2=APPLICATION_PROTOCOL_DEFINITION('international standard','automotive_design',2000,#1);
13
14/* Create three faces sharing a single edge: one "inner" face and two "outer" faces */
15
16/* Shared edge vertices (on the T-junction) */
17#100=CARTESIAN_POINT('',(0,0,0));
18#101=CARTESIAN_POINT('',(0,0,5.0));
19
20/* Face 1 (bottom-left): quad from 0,0 to 5,5 */
21#102=CARTESIAN_POINT('',(0,0,0));
22#103=CARTESIAN_POINT('',(5.0,0,0));
23#104=CARTESIAN_POINT('',(5.0,5.0,0));
24#105=CARTESIAN_POINT('',(0,5.0,0));
25
26/* Face 2 (bottom-right): quad from 0,0 to -5,5 */
27#106=CARTESIAN_POINT('',(0,0,0));
28#107=CARTESIAN_POINT('',(-5.0,0,0));
29#108=CARTESIAN_POINT('',(-5.0,5.0,0));
30#109=CARTESIAN_POINT('',(0,5.0,0));
31
32/* Face 3 (inner/vertical): small quad along Y=0 plane, back face */
33#110=CARTESIAN_POINT('',(0,-1.0,0));
34#111=CARTESIAN_POINT('',(0,-1.0,5.0));
35#112=CARTESIAN_POINT('',(0,1.0,5.0));
36#113=CARTESIAN_POINT('',(0,1.0,0));
37
38/* VERTEX_POINT entities */
39#200=VERTEX_POINT('',#100);
40#201=VERTEX_POINT('',#101);
41#202=VERTEX_POINT('',#102);
42#203=VERTEX_POINT('',#103);
43#204=VERTEX_POINT('',#104);
44#205=VERTEX_POINT('',#105);
45#206=VERTEX_POINT('',#106);
46#207=VERTEX_POINT('',#107);
47#208=VERTEX_POINT('',#108);
48#209=VERTEX_POINT('',#109);
49#210=VERTEX_POINT('',#110);
50#211=VERTEX_POINT('',#111);
51#212=VERTEX_POINT('',#112);
52#213=VERTEX_POINT('',#113);
53
54/* Planes */
55#300=AXIS2_PLACEMENT_3D('face1_plane',#100,DIRECTION('',(0,0,1)),DIRECTION('',(1,0,0)));
56#301=PLANE('',#300);
57#302=AXIS2_PLACEMENT_3D('face2_plane',#106,DIRECTION('',(0,0,1)),DIRECTION('',(-1,0,0)));
58#303=PLANE('',#302);
59#304=AXIS2_PLACEMENT_3D('face3_plane',#110,DIRECTION('',(1,0,0)),DIRECTION('',(0,1,0)));
60#305=PLANE('',#304);
61
62/* Face 1 edges */
63#400=LINE('',#102,VECTOR('',(1,0,0),5.0));
64#401=EDGE_CURVE('f1e1',#202,#203,#400,.T.);
65#402=LINE('',#103,VECTOR('',(0,1,0),5.0));
66#403=EDGE_CURVE('f1e2',#203,#204,#402,.T.);
67#404=LINE('',#104,VECTOR('',(-1,0,0),5.0));
68#405=EDGE_CURVE('f1e3',#204,#205,#404,.T.);
69#406=LINE('',#105,VECTOR('',(0,-1,0),5.0));
70#407=EDGE_CURVE('f1e4',#205,#202,#406,.T.);
71
72/* Face 2 edges */
73#408=LINE('',#106,VECTOR('',(-1,0,0),5.0));
74#409=EDGE_CURVE('f2e1',#206,#207,#408,.T.);
75#410=LINE('',#107,VECTOR('',(0,1,0),5.0));
76#411=EDGE_CURVE('f2e2',#207,#208,#410,.T.);
77#412=LINE('',#108,VECTOR('',(1,0,0),5.0));
78#413=EDGE_CURVE('f2e3',#208,#209,#412,.T.);
79#414=LINE('',#109,VECTOR('',(0,-1,0),5.0));
80#415=EDGE_CURVE('f2e4',#209,#206,#414,.T.);
81
82/* Face 3 edges: includes the shared edge in T-junction */
83#416=LINE('',#110,VECTOR('',(0,0,5.0),5.0));
84#417=EDGE_CURVE('f3e1',#210,#211,#416,.T.);
85#418=LINE('',#111,VECTOR('',(0,2.0,0),2.0));
86#419=EDGE_CURVE('f3e2',#211,#212,#418,.T.);
87#420=LINE('',#112,VECTOR('',(0,-2.0,0),2.0));
88#421=EDGE_CURVE('f3e3',#212,#213,#420,.T.);
89#422=LINE('',#113,VECTOR('',(0,0,-5.0),5.0));
90#423=EDGE_CURVE('f3e4',#213,#210,#422,.T.);
91
92/* Edge loops */
93#500=ORIENTED_EDGE('',*,*,#401,.T.);
94#501=ORIENTED_EDGE('',*,*,#403,.T.);
95#502=ORIENTED_EDGE('',*,*,#405,.T.);
96#503=ORIENTED_EDGE('',*,*,#407,.T.);
97#504=EDGE_LOOP('face1_loop',(#500,#501,#502,#503));
98
99#505=ORIENTED_EDGE('',*,*,#409,.T.);
100#506=ORIENTED_EDGE('',*,*,#411,.T.);
101#507=ORIENTED_EDGE('',*,*,#413,.T.);
102#508=ORIENTED_EDGE('',*,*,#415,.T.);
103#509=EDGE_LOOP('face2_loop',(#505,#506,#507,#508));
104
105#510=ORIENTED_EDGE('',*,*,#417,.T.);
106#511=ORIENTED_EDGE('',*,*,#419,.T.);
107#512=ORIENTED_EDGE('',*,*,#421,.T.);
108#513=ORIENTED_EDGE('',*,*,#423,.T.);
109#514=EDGE_LOOP('face3_loop',(#510,#511,#512,#513));
110
111/* Face bounds */
112#600=FACE_OUTER_BOUND('',#504,.T.);
113#601=FACE_OUTER_BOUND('',#509,.T.);
114#602=FACE_OUTER_BOUND('',#514,.T.);
115
116/* Faces */
117#700=ADVANCED_FACE('face1_outer',(#600),#301,.T.);
118#701=ADVANCED_FACE('face2_outer',(#601),#303,.T.);
119#702=ADVANCED_FACE('face3_inner',(#602),#305,.T.);
120
121/* Shell */
122#800=OPEN_SHELL('tjunction_shell',(#700,#701,#702));
123
124/* Mandatory PRODUCT chain */
125#9000=PRODUCT_CONTEXT('',#1,'mechanical');
126#9001=PRODUCT('Tsh112','Tsh112','',(#9000));
127#9002=PRODUCT_DEFINITION_FORMATION('','',#9001);
128#9003=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
129#9004=PRODUCT_DEFINITION('','',#9002,#9003);
130#9005=PRODUCT_DEFINITION_SHAPE('','',#9004);
131#9006=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
132#9007=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
133#9008=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
134#9009=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9006,'distance_accuracy_value','');
135#9010=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9009))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9006,#9007,#9008))REPRESENTATION_CONTEXT('','3D'));
136#9021=SHELL_BASED_SURFACE_MODEL('sbsm',(#800));
137#9022=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9021),#9010);
138#9023=SHAPE_DEFINITION_REPRESENTATION(#9005,#9022);
139ENDSEC;
140END-ISO-10303-21;