step-examples/12-3b-wires/Twi162.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixIntersectingEdges 3-edge-mutual-intersection
Reproducer recipe
Expected kernel behavior
The vertex at (5,5,0) is used twice by the same wire — once between edges 1 and 2 and again between edges 4 and 5 — so the contour is a figure eight pinched at a point rather than two edges crossing at interior parameters. Detect repeated vertex use within one wire, not only curve-curve crossings, and split the wire there into its two closed lobes ((5,5) to (10,5) to (5,10) back to (5,5), and (5,5) to (5,0) to (0,5) back to (5,5)), then classify each lobe independently as outer boundary or hole. A crossing-only search finds nothing on this input and silently returns the pinched wire.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi162: Single ADVANCED_FACE on PLANE in CLOSED_SHELL; outer EDGE_LOOP has 6 LINE edges forming a star/bow that visits center point (5,5,0) twice: E0 (0,5,0)â(5,5,0), E1 (5,5,0)â(10,5,0), E2 (10,5,0)â(5,10,0), E3 (5,10,0)â(5,5,0), E4 (5,5,0)â(5,0,0), E5 (5,0,0)â(0,5,0); center vertex (5,5,0) appears as both endpoint of E0/E1 and E3/E4 IS the 3-edge-mutual-intersection defect; FixIntersectingEdges pairwise splits create inconsistent topology without shared-vertex reconciliation IS the mechanism; EDGE_LOOP IS wired into FACE_OUTER_BOUND â ADVANCED_FACE in CLOSED_SHELL â never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi162'),'2;1'); 5FILE_NAME('Twi162.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,5.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('',(10.0,5.0,0.0)); 20#11=VERTEX_POINT('',#10); 21#12=CARTESIAN_POINT('',(5.0,10.0,0.0)); 22#13=VERTEX_POINT('',#12); 23#14=CARTESIAN_POINT('',(5.0,5.0,0.0)); 24#15=VERTEX_POINT('',#14); 25#16=CARTESIAN_POINT('',(0.0,5.0,0.0)); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,5.0); 28#19=LINE('',#16,#18); 29#20=EDGE_CURVE('',#7,#15,#19,.T.); 30#21=ORIENTED_EDGE('',$,$,#20,.T.); 31#22=CARTESIAN_POINT('',(5.0,5.0,0.0)); 32#23=DIRECTION('',(1.0,0.0,0.0)); 33#24=VECTOR('',#23,5.0); 34#25=LINE('',#22,#24); 35#26=EDGE_CURVE('',#15,#11,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=CARTESIAN_POINT('',(10.0,5.0,0.0)); 38#29=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 39#30=VECTOR('',#29,7.07106781187); 40#31=LINE('',#28,#30); 41#32=EDGE_CURVE('',#11,#13,#31,.T.); 42#33=ORIENTED_EDGE('',$,$,#32,.T.); 43#34=CARTESIAN_POINT('',(5.0,10.0,0.0)); 44#35=DIRECTION('',(0.0,-1.0,0.0)); 45#36=VECTOR('',#35,5.0); 46#37=LINE('',#34,#36); 47#38=EDGE_CURVE('',#13,#15,#37,.T.); 48#39=ORIENTED_EDGE('',$,$,#38,.T.); 49#40=CARTESIAN_POINT('',(5.0,5.0,0.0)); 50#41=DIRECTION('',(0.0,-1.0,0.0)); 51#42=VECTOR('',#41,5.0); 52#43=LINE('',#40,#42); 53#44=EDGE_CURVE('',#15,#9,#43,.T.); 54#45=ORIENTED_EDGE('',$,$,#44,.T.); 55#46=CARTESIAN_POINT('',(5.0,0.0,0.0)); 56#47=DIRECTION('',(-0.707106781187,0.707106781187,0.0)); 57#48=VECTOR('',#47,7.07106781187); 58#49=LINE('',#46,#48); 59#50=EDGE_CURVE('',#9,#7,#49,.T.); 60#51=ORIENTED_EDGE('',$,$,#50,.T.); 61#52=EDGE_LOOP('',(#21,#27,#33,#39,#45,#51)); 62#53=FACE_OUTER_BOUND('',#52,.T.); 63#54=ADVANCED_FACE('',(#53),#5,.T.); 64#55=CLOSED_SHELL('',(#54)); 65#56=SHELL_BASED_SURFACE_MODEL('',(#55)); 66#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 67#9051=PRODUCT('Twi162','Twi162','',(#9050)); 68#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 69#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 70#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 71#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 72#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 73#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 74#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 75#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 76#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 77#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#56),#9060); 78#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 79ENDSEC; 80END-ISO-10303-21;