step-examples/12-3b-wires/Twi214.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixSelfIntersection figure-eight-pattern
Reproducer recipe
Expected kernel behavior
The wire's single edge runs from (5,5,0) to (5,-5,0) and crosses itself once near the origin. Locate the crossing within the curve's own parameter range, insert a vertex there, and split the edge into the two sub-edges that meet at it — the outcome is still one wire whose edges are listed in traversal order, not two independent wires. If the crossing parameter cannot be resolved reliably, leave the edge whole and report the self-intersection rather than emitting a partly split contour.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Twi214: GEOMETRIC_CURVE_SET containing EDGE_LOOP with single B-spline edge; fig8_edge: degree-3 B_SPLINE_CURVE_WITH_KNOTS from (5,5,0) to (5,-5,0) crossing itself at origin (0,0,0) IS the figure-8 self-intersection; control points: (5,5,0),(-10,5,0),(-10,-5,0),(5,-5,0) via (0,0,0) crossing; FixSelfIntersection split produces two wires not topological fault IS defect; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; fig8_edge IS wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi214'),'2;1'); 5FILE_NAME('Twi214.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('',(5.0,5.0,0.0)); 16#7=CARTESIAN_POINT('',(-8.0,4.0,0.0)); 17#8=CARTESIAN_POINT('',(-8.0,-4.0,0.0)); 18#9=CARTESIAN_POINT('',(8.0,-4.0,0.0)); 19#10=CARTESIAN_POINT('',(8.0,4.0,0.0)); 20#11=CARTESIAN_POINT('',(5.0,-5.0,0.0)); 21#12=B_SPLINE_CURVE_WITH_KNOTS('fig8_3d',3,(#6,#7,#8,#9,#10,#11),.UNSPECIFIED.,.F.,.T.,(4,1,1,4),(0.0,0.33,0.67,1.0),.UNSPECIFIED.); 22#13=CARTESIAN_POINT('',(5.0,5.0)); 23#14=DIRECTION('',(0.0,-1.0)); 24#15=VECTOR('',#14,10.0); 25#16=LINE('',#13,#15); 26#17=DEFINITIONAL_REPRESENTATION('',(#16),#*); 27#18=PCURVE('',#5,#17); 28#19=SURFACE_CURVE('',#12,(#18),.PCURVE_S1.); 29#20=CARTESIAN_POINT('',(5.0,5.0,0.0)); 30#21=VERTEX_POINT('',#20); 31#22=CARTESIAN_POINT('',(5.0,-5.0,0.0)); 32#23=VERTEX_POINT('',#22); 33#24=EDGE_CURVE('fig8_edge',#21,#23,#19,.T.); 34#25=ORIENTED_EDGE('',*,*,#24,.T.); 35#26=EDGE_LOOP('',(#25)); 36#27=GEOMETRIC_CURVE_SET('',(#26)); 37#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 38#9051=PRODUCT('Twi214','Twi214','',(#9050)); 39#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 40#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 41#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 42#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 43#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 44#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 45#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 46#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 47#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 48#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#27),#9060); 49#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 50ENDSEC; 51END-ISO-10303-21;