step-examples/12-3a-shells/Tsh056.stp
Sources
- OCCT MANTIS#0031066
- OCCT MANTIS#0028913 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A face's outer wire visits one vertex twice (figure-of-eight topology), so the wire is non-simple. Same-surface face merging walks edges and never terminates because the visited-edge map records edges, not edge-with-direction, and the figure-of-eight makes the iterator revisit the same edge from the opposite side indefinitely.
Reproducer recipe
A single face whose `FACE_OUTER_BOUND` has 6 edges forming a figure-eight at one vertex (vertex `B` has 4 incident edges in the wire). Run face unification.
Expected kernel behavior
edge-walking iterators on non-simple wires must terminate (use vertex+direction or edge+direction in the visited map); reject pathological wires before iterating.
Notes
**See also**: Twi076, Tsh056b. Synonyms: "face merge hangs on figure-eight wire", "infinite loop in unifier on non-simple wire", "edge walker stuck on pinched face", "non-simple wire causes hang", "face merge fails to terminate". Validation observed: the source bytes declare 1 ADVANCED_FACE entity, but OCCT's traversal of the non-simple figure-eight wire produces n_faces_total=2 — this divergence IS the defect (bytes/tier-3 inconsistency is intentional, allowlisted in `DOCUMENTED_DIVERGENCE` of `_bytes_tier3_audit.py`).
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) ifc=schema_n/a
Byte assertions
count_entity_def(b'ADVANCED_FACE') == 1
Tier-3 assertions
n_faces_total == 2
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh056: OPEN_SHELL with one ADVANCED_FACE on a PLANE (z=0, normal +Z); FACE_OUTER_BOUND has 6 EDGE_CURVEs forming a figure-eight at vertex B (1,1,0); vertex B has 4 incident edges in the loop (pinch point, visited twice); figure-eight IS wired into EDGE_LOOP topology as a non-simple wire; edge walker using edge-only visited set loops indefinitely; fix requires edge+direction in visited map, or reject non-simple wires */ 3HEADER; 4FILE_DESCRIPTION(('Tsh056'),'2;1'); 5FILE_NAME('Tsh056.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,1.0,0.0)); 11#2=CARTESIAN_POINT('',(1.0,1.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,2.0,0.0)); 13#4=CARTESIAN_POINT('',(2.0,0.0,0.0)); 14#5=CARTESIAN_POINT('',(2.0,2.0,0.0)); 15#6=VERTEX_POINT('',#1); 16#7=VERTEX_POINT('',#2); 17#8=VERTEX_POINT('',#3); 18#9=VERTEX_POINT('',#4); 19#10=VERTEX_POINT('',#5); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#1,#12); 23#14=EDGE_CURVE('',#6,#7,#13,.T.); 24#15=DIRECTION('',(1.0,-1.0,0.0)); 25#16=VECTOR('',#15,1.0); 26#17=LINE('',#2,#16); 27#18=EDGE_CURVE('',#7,#9,#17,.T.); 28#19=DIRECTION('',(0.0,1.0,0.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#4,#20); 31#22=EDGE_CURVE('',#9,#10,#21,.T.); 32#23=DIRECTION('',(-1.0,-1.0,0.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#5,#24); 35#26=EDGE_CURVE('',#10,#7,#25,.T.); 36#27=DIRECTION('',(-1.0,1.0,0.0)); 37#28=VECTOR('',#27,1.0); 38#29=LINE('',#2,#28); 39#30=EDGE_CURVE('',#7,#8,#29,.T.); 40#31=DIRECTION('',(0.0,-1.0,0.0)); 41#32=VECTOR('',#31,1.0); 42#33=LINE('',#3,#32); 43#34=EDGE_CURVE('',#8,#6,#33,.T.); 44#35=ORIENTED_EDGE('',$,$,#14,.T.); 45#36=ORIENTED_EDGE('',$,$,#18,.T.); 46#37=ORIENTED_EDGE('',$,$,#22,.T.); 47#38=ORIENTED_EDGE('',$,$,#26,.T.); 48#39=ORIENTED_EDGE('',$,$,#30,.T.); 49#40=ORIENTED_EDGE('',$,$,#34,.T.); 50#41=EDGE_LOOP('',(#35,#36,#37,#38,#39,#40)); 51#42=CARTESIAN_POINT('',(0.0,0.0,0.0)); 52#43=DIRECTION('',(0.0,0.0,1.0)); 53#44=DIRECTION('',(1.0,0.0,0.0)); 54#45=AXIS2_PLACEMENT_3D('',#42,#43,#44); 55#46=PLANE('',#45); 56#47=FACE_OUTER_BOUND('',#41,.T.); 57#48=ADVANCED_FACE('',(#47),#46,.T.); 58#49=OPEN_SHELL('',(#48)); 59#50=SHELL_BASED_SURFACE_MODEL('',(#49)); 60#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 61#9051=PRODUCT('Tsh056','Tsh056','',(#9050)); 62#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 63#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 64#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 65#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 66#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 67#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 68#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 69#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 70#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 71#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#50),#9060); 72#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 73ENDSEC; 74END-ISO-10303-21;