Tsh157 — ShapeFix_Shell.Perform circular-fix-dependency

§12.3a

topology

Sources

Description

ShapeFix_Shell.Perform circular-fix-dependency

Reproducer recipe

Expected kernel behavior

Three triangular faces form a ring, each pair sharing one edge (e01, e12, e20), and every shared edge is referenced with ORIENTED_EDGE sense .T. by both faces that use it — a three-way orientation conflict where fixing any one face's sense against one neighbour necessarily creates a new conflict with the other. Detect this kind of closed dependency cycle among the faces before attempting sequential per-face fixes, and resolve it as a single global constraint-satisfaction problem (or report the cycle explicitly) rather than repeatedly re-flipping faces in sequence, which can cycle indefinitely without ever reaching a consistent shell.

Expected validation

occt=shape(1)/shape(1) gmsh=reject 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/* Tsh157: THREE ADVANCED_FACEs in triangular ring sharing edges in OPEN_SHELL — IS the circular-fix-dependency mechanism; Face0 (bottom-left triangle) shares e01 with Face1 and e20 with Face2; Face1 (bottom-right triangle) shares e01 with Face0 and e12 with Face2; Face2 (top triangle) shares e12 with Face1 and e20 with Face0; shared edge e01 IS wired with oriented_edge(.T.) in Face0-EDGE_LOOP AND oriented_edge(.T.) in Face1-EDGE_LOOP — IS the conflicting orientation; shared edge e12 IS wired with oriented_edge(.T.) in Face1-EDGE_LOOP AND oriented_edge(.T.) in Face2-EDGE_LOOP — IS the conflicting orientation; shared edge e20 IS wired with oriented_edge(.T.) in Face2-EDGE_LOOP AND oriented_edge(.T.) in Face0-EDGE_LOOP — IS the conflicting orientation; circular dependency IS the mechanism: fixing any one edge breaks the next; ShapeFix_Shell.Perform processes faces sequentially without cycle detection; fix: detect cyclic orientation conflicts; use global consensus or break cycle; emit E_PERFORM_CIRCULAR_FIX_DEPENDENCY when fix chain cycles back to start face */
3HEADER;
4FILE_DESCRIPTION(('Tsh157'),'2;1');
5FILE_NAME('Tsh157.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('',(0.5,1.0,0.0));
13#4=VERTEX_POINT('',#1);
14#5=VERTEX_POINT('',#2);
15#6=VERTEX_POINT('',#3);
16#7=DIRECTION('',(1.0,0.0,0.0));
17#8=VECTOR('',#7,1.0);
18#9=LINE('',#1,#8);
19#10=EDGE_CURVE('',#4,#5,#9,.T.);
20#11=DIRECTION('',(-0.5,1.0,0.0));
21#12=VECTOR('',#11,1.0);
22#13=LINE('',#2,#12);
23#14=EDGE_CURVE('',#5,#6,#13,.T.);
24#15=DIRECTION('',(-0.5,-1.0,0.0));
25#16=VECTOR('',#15,1.0);
26#17=LINE('',#3,#16);
27#18=EDGE_CURVE('',#6,#4,#17,.T.);
28#19=CARTESIAN_POINT('',(0.5,-0.3,0.0));
29#20=CARTESIAN_POINT('',(1.3,0.5,0.0));
30#21=CARTESIAN_POINT('',(-0.3,0.5,0.0));
31#22=VERTEX_POINT('',#19);
32#23=VERTEX_POINT('',#20);
33#24=VERTEX_POINT('',#21);
34#25=DIRECTION('',(0.5,-0.3,0.0));
35#26=VECTOR('',#25,1.0);
36#27=LINE('',#1,#26);
37#28=EDGE_CURVE('',#4,#22,#27,.T.);
38#29=DIRECTION('',(-0.5,-0.3,0.0));
39#30=VECTOR('',#29,1.0);
40#31=LINE('',#2,#30);
41#32=EDGE_CURVE('',#5,#22,#31,.T.);
42#33=DIRECTION('',(0.3,0.5,0.0));
43#34=VECTOR('',#33,1.0);
44#35=LINE('',#2,#34);
45#36=EDGE_CURVE('',#5,#23,#35,.T.);
46#37=DIRECTION('',(0.8,-0.5,0.0));
47#38=VECTOR('',#37,1.0);
48#39=LINE('',#3,#38);
49#40=EDGE_CURVE('',#6,#23,#39,.T.);
50#41=DIRECTION('',(-0.8,-0.5,0.0));
51#42=VECTOR('',#41,1.0);
52#43=LINE('',#3,#42);
53#44=EDGE_CURVE('',#6,#24,#43,.T.);
54#45=DIRECTION('',(-0.3,0.5,0.0));
55#46=VECTOR('',#45,1.0);
56#47=LINE('',#1,#46);
57#48=EDGE_CURVE('',#4,#24,#47,.T.);
58#49=DIRECTION('',(0.0,0.0,1.0));
59#50=DIRECTION('',(1.0,0.0,0.0));
60#51=AXIS2_PLACEMENT_3D('',#1,#49,#50);
61#52=PLANE('',#51);
62#53=ORIENTED_EDGE('',$,$,#10,.T.);
63#54=ORIENTED_EDGE('',$,$,#32,.F.);
64#55=ORIENTED_EDGE('',$,$,#28,.F.);
65#56=EDGE_LOOP('',(#53,#54,#55));
66#57=FACE_OUTER_BOUND('',#56,.T.);
67#58=ADVANCED_FACE('',(#57),#52,.T.);
68#59=ORIENTED_EDGE('',$,$,#10,.T.);
69#60=ORIENTED_EDGE('',$,$,#36,.T.);
70#61=ORIENTED_EDGE('',$,$,#40,.F.);
71#62=EDGE_LOOP('',(#59,#60,#61));
72#63=FACE_OUTER_BOUND('',#62,.T.);
73#64=ADVANCED_FACE('',(#63),#52,.T.);
74#65=ORIENTED_EDGE('',$,$,#14,.T.);
75#66=ORIENTED_EDGE('',$,$,#44,.T.);
76#67=ORIENTED_EDGE('',$,$,#48,.F.);
77#68=EDGE_LOOP('',(#65,#66,#67));
78#69=FACE_OUTER_BOUND('',#68,.T.);
79#70=ADVANCED_FACE('',(#69),#52,.T.);
80#71=OPEN_SHELL('',(#58,#64,#70));
81#72=SHELL_BASED_SURFACE_MODEL('',(#71));
82#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
83#9051=PRODUCT('Tsh157','Tsh157','',(#9050));
84#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
85#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
86#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
87#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
88#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
89#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
90#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
91#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
92#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
93#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#72),#9060);
94#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
95ENDSEC;
96END-ISO-10303-21;