step-examples/12-3b-wires/Twi051.stp
Sources
- OCCT `ShapeFix_Wire::Perform` (`ShapeFix_Wire.hxx:271`)
Description
A wire simultaneously has out-of-order edges, a 3D gap between two of its edges, and a missing edge between two non-coincident vertices. Fixing in the wrong order (e.g., reorder before connect) produces a different end-state than fixing in the right order. The wire-level orchestrator must apply fixes in a sequence that converges on a closed wire.
Reproducer recipe
A face with one outer wire whose edges are listed in scrambled order plus an inner wire with a sub-tolerance hole and disordered edges.
Expected kernel behavior
an iterative healing pipeline that begins with reorder, then connection, then degenerate-edge handling, then self-intersection, then lacking-edge insertion, then closure verification; each fix re-evaluates the wire's status before the next.
Notes
Umbrella entry over the per-defect wire-healing rows (reorder, small-edge removal, connection, edge-curve fix, degenerate-edge insertion, self-intersection resolution, lacking-edge insertion, closure verification). This row captures the pipeline contract that ties them together. Synonyms: "wire healing pipeline must order fixes correctly", "multi-defect wire needs convergent repair", "fix sequence matters for wires with multiple problems", "wire orchestrator iterates until stable".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(15) 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 >= 4face[0].surface_type == "plane"n_vertices_total >= 8
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi051: ADVANCED_FACE on a PLANE (5x5); outer EDGE_LOOP has four ORIENTED_EDGEs listed in scrambled (non-sequential) head-to-tail order â reorder defect IS part of mechanism; inner FACE_BOUND is a triangle with near-coincident vertices (1e-4 gap) and ORIENTED_EDGEs also out of head-to-tail order â pipeline defect IS mechanism; multi-defect: reorder must happen before connect for convergence; all EDGE_CURVEs ARE wired into EDGE_LOOPs â FACE_OUTER_BOUND + FACE_BOUND â ADVANCED_FACE in CLOSED_SHELL â never orphaned; kernel healing pipeline must apply: reorder â connect â lacking â closure, in that order, for each wire */ 3HEADER; 4FILE_DESCRIPTION(('Twi051'),'2;1'); 5FILE_NAME('Twi051.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=PLANE('',#4); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=VERTEX_POINT('',#6); 17#8=CARTESIAN_POINT('',(5.0,0.0,0.0)); 18#9=VERTEX_POINT('',#8); 19#10=CARTESIAN_POINT('',(5.0,5.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(0.0,5.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(0.0,0.0,0.0)); 24#15=DIRECTION('',(1.0,0.0,0.0)); 25#16=VECTOR('',#15,5.0); 26#17=LINE('',#14,#16); 27#18=EDGE_CURVE('',#7,#9,#17,.T.); 28#19=CARTESIAN_POINT('',(5.0,0.0,0.0)); 29#20=DIRECTION('',(0.0,1.0,0.0)); 30#21=VECTOR('',#20,5.0); 31#22=LINE('',#19,#21); 32#23=EDGE_CURVE('',#9,#11,#22,.T.); 33#24=CARTESIAN_POINT('',(5.0,5.0,0.0)); 34#25=DIRECTION('',(-1.0,0.0,0.0)); 35#26=VECTOR('',#25,5.0); 36#27=LINE('',#24,#26); 37#28=EDGE_CURVE('',#11,#13,#27,.T.); 38#29=CARTESIAN_POINT('',(0.0,5.0,0.0)); 39#30=DIRECTION('',(0.0,-1.0,0.0)); 40#31=VECTOR('',#30,5.0); 41#32=LINE('',#29,#31); 42#33=EDGE_CURVE('',#13,#7,#32,.T.); 43#34=ORIENTED_EDGE('',$,$,#28,.T.); 44#35=ORIENTED_EDGE('',$,$,#18,.T.); 45#36=ORIENTED_EDGE('',$,$,#33,.T.); 46#37=ORIENTED_EDGE('',$,$,#23,.T.); 47#38=EDGE_LOOP('',(#34,#35,#36,#37)); 48#39=FACE_OUTER_BOUND('',#38,.T.); 49#40=CARTESIAN_POINT('',(2.0,2.0,0.0)); 50#41=VERTEX_POINT('',#40); 51#42=CARTESIAN_POINT('',(3.0,2.0,0.0)); 52#43=VERTEX_POINT('',#42); 53#44=CARTESIAN_POINT('',(2.5,3.0,0.0)); 54#45=VERTEX_POINT('',#44); 55#46=CARTESIAN_POINT('',(2.5,3.0001,0.0)); 56#47=VERTEX_POINT('',#46); 57#48=CARTESIAN_POINT('',(2.0,2.0,0.0)); 58#49=DIRECTION('',(1.0,0.0,0.0)); 59#50=VECTOR('',#49,1.0); 60#51=LINE('',#48,#50); 61#52=EDGE_CURVE('',#41,#43,#51,.T.); 62#53=CARTESIAN_POINT('',(3.0,2.0,0.0)); 63#54=DIRECTION('',(-0.5,1.0,0.0)); 64#55=VECTOR('',#54,1.118); 65#56=LINE('',#53,#55); 66#57=EDGE_CURVE('',#43,#45,#56,.T.); 67#58=CARTESIAN_POINT('',(2.5,3.0001,0.0)); 68#59=DIRECTION('',(-0.5,-1.0,0.0)); 69#60=VECTOR('',#59,1.118); 70#61=LINE('',#58,#60); 71#62=EDGE_CURVE('',#47,#41,#61,.T.); 72#63=ORIENTED_EDGE('',$,$,#62,.T.); 73#64=ORIENTED_EDGE('',$,$,#52,.T.); 74#65=ORIENTED_EDGE('',$,$,#57,.T.); 75#66=EDGE_LOOP('',(#63,#64,#65)); 76#67=FACE_BOUND('',#66,.T.); 77#68=ADVANCED_FACE('',(#39,#67),#5,.T.); 78#69=CLOSED_SHELL('',(#68)); 79#70=SHELL_BASED_SURFACE_MODEL('',(#69)); 80#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 81#9051=PRODUCT('Twi051','Twi051','',(#9050)); 82#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 83#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 84#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 85#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 86#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 87#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 88#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 89#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 90#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 91#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#70),#9060); 92#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 93ENDSEC; 94END-ISO-10303-21;