Tsh104 — ShapeFix_Shell.FixFaceOrientation reverse-edge propagation

§12.3a

topology

Sources

Description

ShapeFix_Shell.FixFaceOrientation reverse-edge propagation

Reproducer recipe

Expected kernel behavior

The two faces correctly share the edge from (1,0,0) to (1,1,0), referenced `.T.` by the first loop and `.F.` by the second, with both faces carrying `same_sense=.T.` on +Z planes. Orientation propagation must treat the reversed reference symmetrically: a neighbour's `.F.` use means the neighbour is already consistent and nothing may be flipped, and only an edge that both faces traverse in the same direction is evidence of an inconsistency. An implementation that handles only `.T.` references will either skip this pair entirely or flip a face that was already correct.

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/* Tsh104: OPEN_SHELL with 2 adjacent ADVANCED_FACEs sharing 1 EDGE_CURVE — IS the mechanism; Face1 references shared EDGE_CURVE with ORIENTED_EDGE orientation=True (.T.); Face2 references SAME shared EDGE_CURVE with ORIENTED_EDGE orientation=False (.F.); .F. reverse-reference IS directly wired into Face2 EDGE_LOOP in shell topology; FixFaceOrientation propagates from Face1 via .T. reference to shared edge; propagation logic only handles .T. — .F. reference in Face2 IS the blocker mechanism; flip cascade silently skips Face2 because .F. edge path is not handled; fix: invert propagation direction when shared edge referenced as .F. in neighbor; emit E_REVERSE_EDGE_PROPAGATION_SKIPPED when .F. reference blocks orientation cascade */
3HEADER;
4FILE_DESCRIPTION(('Tsh104'),'2;1');
5FILE_NAME('Tsh104.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('',(1.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('',(1.0,0.0,0.0));
19#10=CARTESIAN_POINT('',(2.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(2.0,1.0,0.0));
21#12=CARTESIAN_POINT('',(1.0,1.0,0.0));
22#13=VERTEX_POINT('',#10);
23#14=VERTEX_POINT('',#11);
24#15=DIRECTION('',(0.0,1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#2,#16);
27#18=EDGE_CURVE('',#6,#7,#17,.T.);
28#19=DIRECTION('',(1.0,0.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#1,#20);
31#22=EDGE_CURVE('',#5,#6,#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('',$,$,#22,.T.);
41#32=ORIENTED_EDGE('',$,$,#18,.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('',(1.0,0.0,0.0));
52#43=VECTOR('',#42,1.0);
53#44=LINE('',#9,#43);
54#45=EDGE_CURVE('',#6,#13,#44,.T.);
55#46=DIRECTION('',(0.0,1.0,0.0));
56#47=VECTOR('',#46,1.0);
57#48=LINE('',#10,#47);
58#49=EDGE_CURVE('',#13,#14,#48,.T.);
59#50=DIRECTION('',(-1.0,0.0,0.0));
60#51=VECTOR('',#50,1.0);
61#52=LINE('',#11,#51);
62#53=EDGE_CURVE('',#14,#7,#52,.T.);
63#54=ORIENTED_EDGE('',$,$,#45,.T.);
64#55=ORIENTED_EDGE('',$,$,#49,.T.);
65#56=ORIENTED_EDGE('',$,$,#53,.T.);
66#57=ORIENTED_EDGE('',$,$,#18,.F.);
67#58=EDGE_LOOP('',(#54,#55,#56,#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('Tsh104','Tsh104','',(#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;