Tsh100 — ShapeFix_Shell.FixFaceOrientation tangent-edge propagation

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation tangent-edge propagation

Reproducer recipe

Expected kernel behavior

The two faces are coplanar (both on +Z planes at z=0), meet along y=0 at a 180-degree dihedral, and already share one edge, used `.T.` by one loop and `.F.` by the other. Do not decide shell consistency by comparing neighbouring face normals or dihedral angles — for coplanar neighbours those tests are degenerate and give no answer — but from each shared edge's traversal directions, which here are already opposite. The correct outcome is to leave both faces exactly as authored and report no orientation defect.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(15) 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/* Tsh100: OPEN_SHELL with 2 coplanar ADVANCED_FACEs both at z=0 sharing one EDGE_CURVE; shared EDGE_CURVE along x=[1,2] y=0 IS directly wired into both face EDGE_LOOPs; dihedral angle between coplanar faces IS 0° — IS the tangent-edge mechanism; Face A references shared edge with orientation=True (.T.) in its EDGE_LOOP; Face B references same EDGE_CURVE with orientation=False (.F.) in its EDGE_LOOP; zero dihedral IS the mechanism — cross-product collapses, propagation indeterminate; fix: detect dihedral == 0° before propagation; flag edge as ambiguous; emit E_TANGENT_EDGE_ORIENTATION_PROPAGATION_FAILURE when dihedral angle is zero */
3HEADER;
4FILE_DESCRIPTION(('Tsh100'),'2;1');
5FILE_NAME('Tsh100.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('',(2.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,1.0,0.0));
13#4=CARTESIAN_POINT('',(0.0,1.0,0.0));
14#5=VERTEX_POINT('',#1);
15#6=VERTEX_POINT('',#2);
16#7=VERTEX_POINT('',#3);
17#8=VERTEX_POINT('',#4);
18#9=CARTESIAN_POINT('',(0.0,-1.0,0.0));
19#10=CARTESIAN_POINT('',(2.0,-1.0,0.0));
20#11=CARTESIAN_POINT('',(2.0,0.0,0.0));
21#12=CARTESIAN_POINT('',(0.0,0.0,0.0));
22#13=VERTEX_POINT('',#9);
23#14=VERTEX_POINT('',#10);
24#15=DIRECTION('',(1.0,0.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#1,#16);
27#18=EDGE_CURVE('',#5,#6,#17,.T.);
28#19=DIRECTION('',(0.0,1.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#2,#20);
31#22=EDGE_CURVE('',#6,#7,#21,.T.);
32#23=DIRECTION('',(-1.0,0.0,0.0));
33#24=VECTOR('',#23,1.0);
34#25=LINE('',#3,#24);
35#26=EDGE_CURVE('',#7,#8,#25,.T.);
36#27=DIRECTION('',(0.0,-1.0,0.0));
37#28=VECTOR('',#27,1.0);
38#29=LINE('',#4,#28);
39#30=EDGE_CURVE('',#8,#5,#29,.T.);
40#31=ORIENTED_EDGE('',$,$,#18,.T.);
41#32=ORIENTED_EDGE('',$,$,#22,.T.);
42#33=ORIENTED_EDGE('',$,$,#26,.T.);
43#34=ORIENTED_EDGE('',$,$,#30,.T.);
44#35=EDGE_LOOP('',(#31,#32,#33,#34));
45#36=DIRECTION('',(0.0,0.0,1.0));
46#37=DIRECTION('',(1.0,0.0,0.0));
47#38=AXIS2_PLACEMENT_3D('',#1,#36,#37);
48#39=PLANE('',#38);
49#40=FACE_OUTER_BOUND('',#35,.T.);
50#41=ADVANCED_FACE('',(#40),#39,.T.);
51#42=DIRECTION('',(0.0,1.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('',#10,#43);
54#45=EDGE_CURVE('',#14,#6,#44,.T.);
55#46=ORIENTED_EDGE('',$,$,#18,.F.);
56#47=DIRECTION('',(0.0,-1.0,0.0));
57#48=VECTOR('',#47,1.0);
58#49=LINE('',#12,#48);
59#50=EDGE_CURVE('',#5,#13,#49,.T.);
60#51=DIRECTION('',(1.0,0.0,0.0));
61#52=VECTOR('',#51,1.0);
62#53=LINE('',#9,#52);
63#54=EDGE_CURVE('',#13,#14,#53,.T.);
64#55=ORIENTED_EDGE('',$,$,#54,.T.);
65#56=ORIENTED_EDGE('',$,$,#45,.T.);
66#57=ORIENTED_EDGE('',$,$,#50,.T.);
67#58=EDGE_LOOP('',(#55,#56,#46,#57));
68#59=DIRECTION('',(0.0,0.0,1.0));
69#60=DIRECTION('',(1.0,0.0,0.0));
70#61=AXIS2_PLACEMENT_3D('',#9,#59,#60);
71#62=PLANE('',#61);
72#63=FACE_OUTER_BOUND('',#58,.T.);
73#64=ADVANCED_FACE('',(#63),#62,.T.);
74#65=OPEN_SHELL('',(#41,#64));
75#66=SHELL_BASED_SURFACE_MODEL('',(#65));
76#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
77#9051=PRODUCT('Tsh100','Tsh100','',(#9050));
78#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
79#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
80#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
81#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
82#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
83#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
84#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
85#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
86#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
87#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#66),#9060);
88#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
89ENDSEC;
90END-ISO-10303-21;