step-examples/12-3b-wires/Twi028.stp
Sources
- 08-occt-gitlog.md G080/G104 (Mantis 0021317)
Description
An `EDGE_LOOP` whose `edge_list` is out of cyclic head-to-tail order — for example ordered (#50, #52, #51, #53) so consecutive `ORIENTED_EDGE`s do not share endpoints. A face whose wire is reordered during shape-healing isn't replaced in the resulting shape, so the fix is lost — outer/inner trees still point to the unreordered wire. Common shape: face on `TOROIDAL_SURFACE` whose four edges are scrambled and the wire does not traverse vertices consecutively.
Reproducer recipe
STEP face on torus needing only wire reordering; pass through `ShapeFix_Wire::FixReorder` and observe original wire still attached to face.
Expected kernel behavior
replace face after wire reordering, even if no other fix occurred.
Notes
**See also**: Twi008, Twi038. Synonyms: "edges scrambled out of cyclic order", "torus wire not in head-to-tail order", "wire reorder lost after healing", "scrambled EDGE_LOOP needs reorder only", "fix succeeds but face still references unfixed wire".- **Tier-3 assertion**: face[0].surface_type == "torus"
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
n_edges_total >= 4n_vertices_total >= 8brepcheck.valid == Falseface[0].quadric.major_radius == 2.0face[0].quadric.minor_radius == 0.5edge[0].curve_type == "circle"edge[0].analytic.radius == 2.5edge[1].curve_type == "circle"edge[1].analytic.radius == 2.5edge[2].curve_type == "circle"edge[2].analytic.radius == 2.5edge[3].curve_type == "circle"edge[3].analytic.radius == 2.5
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi028: OPEN_SHELL with one ADVANCED_FACE on a TOROIDAL_SURFACE (major_radius 2, minor_radius 0.5, axis +Z, centre at origin); FACE_OUTER_BOUND references an EDGE_LOOP whose four ORIENTED_EDGEs are listed in scrambled cyclic order [oe0, oe2, oe1, oe3] instead of [oe0, oe1, oe2, oe3]; scrambled EDGE_LOOP on TOROIDAL_SURFACE IS the mechanism; scrambled EDGE_LOOP IS wired into FACE_OUTER_BOUND, ADVANCED_FACE, OPEN_SHELL; healing pass must reorder the loop AND replace the face in the result shape */ 3HEADER; 4FILE_DESCRIPTION(('Twi028'),'2;1'); 5FILE_NAME('Twi028.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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=TOROIDAL_SURFACE('',#4,2.0,0.5); 15#6=CARTESIAN_POINT('',(2.5,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(0.0,2.5,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(-2.5,0.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,-2.5,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=AXIS2_PLACEMENT_3D('',#14,#15,#16); 27#18=CIRCLE('',#17,2.5); 28#19=EDGE_CURVE('',#7,#9,#18,.T.); 29#20=CARTESIAN_POINT('',(0.0,0.0,0.0)); 30#21=DIRECTION('',(0.0,0.0,1.0)); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=AXIS2_PLACEMENT_3D('',#20,#21,#22); 33#24=CIRCLE('',#23,2.5); 34#25=EDGE_CURVE('',#9,#11,#24,.T.); 35#26=CARTESIAN_POINT('',(0.0,0.0,0.0)); 36#27=DIRECTION('',(0.0,0.0,1.0)); 37#28=DIRECTION('',(1.0,0.0,0.0)); 38#29=AXIS2_PLACEMENT_3D('',#26,#27,#28); 39#30=CIRCLE('',#29,2.5); 40#31=EDGE_CURVE('',#11,#13,#30,.T.); 41#32=CARTESIAN_POINT('',(0.0,0.0,0.0)); 42#33=DIRECTION('',(0.0,0.0,1.0)); 43#34=DIRECTION('',(1.0,0.0,0.0)); 44#35=AXIS2_PLACEMENT_3D('',#32,#33,#34); 45#36=CIRCLE('',#35,2.5); 46#37=EDGE_CURVE('',#13,#7,#36,.T.); 47#38=ORIENTED_EDGE('',*,*,#19,.T.); 48#39=ORIENTED_EDGE('',*,*,#25,.T.); 49#40=ORIENTED_EDGE('',*,*,#31,.T.); 50#41=ORIENTED_EDGE('',*,*,#37,.T.); 51#42=EDGE_LOOP('',(#38,#40,#39,#41)); 52#43=FACE_OUTER_BOUND('',#42,.T.); 53#44=ADVANCED_FACE('',(#43),#5,.T.); 54#45=OPEN_SHELL('',(#44)); 55#46=SHELL_BASED_SURFACE_MODEL('',(#45)); 56#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 57#9051=PRODUCT('Twi028','Twi028','',(#9050)); 58#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 59#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 60#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 61#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 62#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 63#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 64#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 65#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 66#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 67#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#46),#9060); 68#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 69ENDSEC; 70END-ISO-10303-21;