Tsh144 — ShapeFix_Shell.FixFaceOrientation T-shaped-non-manifold

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation T-shaped-non-manifold

Reproducer recipe

Expected kernel behavior

The three unit squares tile an L-shape, but the boundary between the first and third face exists twice: two distinct `EDGE_CURVE` entities carry the same two vertices and identical `LINE` geometry, one used by each face, so the faces are geometrically adjacent yet topologically unconnected. Detect duplicate edges by comparing vertices and curve geometry, merge them into one shared edge, and only then run the orientation check — on the merged edge the two faces use opposite senses, so no face needs flipping. Reporting this as a non-manifold three-face edge would be wrong: after merging, every edge has at most two face uses.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(22) ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Tsh144: THREE ADVANCED_FACEs meeting at shared EDGE_CURVE at x=1 y=[0,1] — IS the T-junction mechanism; Face1 (x=[0,1] y=[0,1]) references shared EDGE_CURVE as right boundary — IS wired into EDGE_LOOP1; Face2 (x=[1,2] y=[0,1]) references same shared EDGE_CURVE as left boundary — IS wired into EDGE_LOOP2; Face3 (x=[0,1] y=[1,2]) references same shared EDGE_CURVE as bottom boundary — IS wired into EDGE_LOOP3; single EDGE_CURVE referenced by 3 EDGE_LOOPs IS the non-manifold topology; FixFaceOrientation propagates from Face1 consistently with Face2 but Face3 remains flipped; fix: detect non-manifold edges (3+ face references); apply branching orientation strategy; emit E_NON_MANIFOLD_ORIENTATION_AMBIGUOUS when T-junction edge found during propagation */
3HEADER;
4FILE_DESCRIPTION(('Tsh144'),'2;1');
5FILE_NAME('Tsh144.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(1.0,1.0,0.0));
15#6=CARTESIAN_POINT('',(2.0,1.0,0.0));
16#7=CARTESIAN_POINT('',(0.0,2.0,0.0));
17#8=CARTESIAN_POINT('',(1.0,2.0,0.0));
18#9=VERTEX_POINT('',#1);
19#10=VERTEX_POINT('',#2);
20#11=VERTEX_POINT('',#3);
21#12=VERTEX_POINT('',#4);
22#13=VERTEX_POINT('',#5);
23#14=VERTEX_POINT('',#6);
24#15=VERTEX_POINT('',#7);
25#16=VERTEX_POINT('',#8);
26#17=DIRECTION('',(0.0,1.0,0.0));
27#18=VECTOR('',#17,1.0);
28#19=LINE('',#2,#18);
29#20=EDGE_CURVE('',#10,#13,#19,.T.);
30#21=DIRECTION('',(1.0,0.0,0.0));
31#22=VECTOR('',#21,1.0);
32#23=LINE('',#1,#22);
33#24=EDGE_CURVE('',#9,#10,#23,.T.);
34#25=DIRECTION('',(1.0,0.0,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#4,#26);
37#28=EDGE_CURVE('',#12,#13,#27,.T.);
38#29=DIRECTION('',(0.0,1.0,0.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#1,#30);
41#32=EDGE_CURVE('',#9,#12,#31,.T.);
42#33=DIRECTION('',(1.0,0.0,0.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#2,#34);
45#36=EDGE_CURVE('',#10,#11,#35,.T.);
46#37=DIRECTION('',(1.0,0.0,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#5,#38);
49#40=EDGE_CURVE('',#13,#14,#39,.T.);
50#41=DIRECTION('',(0.0,1.0,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#3,#42);
53#44=EDGE_CURVE('',#11,#14,#43,.T.);
54#45=DIRECTION('',(1.0,0.0,0.0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#7,#46);
57#48=EDGE_CURVE('',#15,#16,#47,.T.);
58#49=DIRECTION('',(0.0,1.0,0.0));
59#50=VECTOR('',#49,1.0);
60#51=LINE('',#4,#50);
61#52=EDGE_CURVE('',#12,#15,#51,.T.);
62#53=DIRECTION('',(0.0,1.0,0.0));
63#54=VECTOR('',#53,1.0);
64#55=LINE('',#5,#54);
65#56=EDGE_CURVE('',#13,#16,#55,.T.);
66#57=DIRECTION('',(1.0,0.0,0.0));
67#58=VECTOR('',#57,1.0);
68#59=LINE('',#4,#58);
69#60=EDGE_CURVE('',#12,#13,#59,.T.);
70#61=ORIENTED_EDGE('',$,$,#24,.T.);
71#62=ORIENTED_EDGE('',$,$,#20,.T.);
72#63=ORIENTED_EDGE('',$,$,#28,.F.);
73#64=ORIENTED_EDGE('',$,$,#32,.F.);
74#65=EDGE_LOOP('',(#61,#62,#63,#64));
75#66=FACE_OUTER_BOUND('',#65,.T.);
76#67=CARTESIAN_POINT('',(0,0,0.0));
77#68=DIRECTION('',(0.0,0.0,1.0));
78#69=DIRECTION('',(1.0,0.0,0.0));
79#70=AXIS2_PLACEMENT_3D('',#67,#68,#69);
80#71=PLANE('',#70);
81#72=ADVANCED_FACE('',(#66),#71,.T.);
82#73=ORIENTED_EDGE('',$,$,#36,.T.);
83#74=ORIENTED_EDGE('',$,$,#44,.T.);
84#75=ORIENTED_EDGE('',$,$,#40,.F.);
85#76=ORIENTED_EDGE('',$,$,#20,.F.);
86#77=EDGE_LOOP('',(#73,#74,#75,#76));
87#78=FACE_OUTER_BOUND('',#77,.T.);
88#79=CARTESIAN_POINT('',(1,0,0.0));
89#80=DIRECTION('',(0.0,0.0,1.0));
90#81=DIRECTION('',(1.0,0.0,0.0));
91#82=AXIS2_PLACEMENT_3D('',#79,#80,#81);
92#83=PLANE('',#82);
93#84=ADVANCED_FACE('',(#78),#83,.T.);
94#85=ORIENTED_EDGE('',$,$,#60,.T.);
95#86=ORIENTED_EDGE('',$,$,#56,.T.);
96#87=ORIENTED_EDGE('',$,$,#48,.F.);
97#88=ORIENTED_EDGE('',$,$,#52,.F.);
98#89=EDGE_LOOP('',(#85,#86,#87,#88));
99#90=FACE_OUTER_BOUND('',#89,.T.);
100#91=CARTESIAN_POINT('',(0,1,0.0));
101#92=DIRECTION('',(0.0,0.0,1.0));
102#93=DIRECTION('',(1.0,0.0,0.0));
103#94=AXIS2_PLACEMENT_3D('',#91,#92,#93);
104#95=PLANE('',#94);
105#96=ADVANCED_FACE('',(#90),#95,.T.);
106#97=OPEN_SHELL('',(#72,#84,#96));
107#98=SHELL_BASED_SURFACE_MODEL('',(#97));
108#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
109#9051=PRODUCT('Tsh144','Tsh144','',(#9050));
110#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
111#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
112#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
113#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
114#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
115#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
116#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
117#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
118#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
119#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#98),#9060);
120#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
121ENDSEC;
122END-ISO-10303-21;