step-examples/12-3b-wires/Twi232.stp
Sources
- synthesized — no external source cited
Description
ShapeFix_Wire.FixSelfIntersection two-edges-two-intersections
Reproducer recipe
Expected kernel behavior
The two cubics cross each other twice, near (-2,2,0) and near (2,-2,0). An intersection search between a pair of edges must return every crossing within their ranges and the repair must split both edges at all of them; stopping after the first leaves a wire that still crosses itself while reporting itself repaired. If the solver can only guarantee a single root, say so and report the pair as unresolved rather than emitting a partially 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/* Twi232: GEOMETRIC_CURVE_SET containing EDGE_LOOP with two B-spline edges; cross_e0: degree-3 B-spline from (-6,0,0) to (6,0,0) arching upward IS first edge; cross_e1: degree-3 B-spline from (0,-6,0) to (0,6,0) arching rightward IS second edge; two edges cross at approximately (-2,2,0) AND (2,-2,0) IS two intersection points; FixSelfIntersection single-intersection-per-pair logic finds first crossing only; second intersection at (2,-2,0) remains undetected IS the defect mechanism; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi232'),'2;1'); 5FILE_NAME('Twi232.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('',(-6.0,0.0,0.0)); 16#7=CARTESIAN_POINT('',(-3.0,6.0,0.0)); 17#8=CARTESIAN_POINT('',(-1.0,-3.0,0.0)); 18#9=CARTESIAN_POINT('',(1.0,3.0,0.0)); 19#10=CARTESIAN_POINT('',(3.0,-6.0,0.0)); 20#11=CARTESIAN_POINT('',(6.0,0.0,0.0)); 21#12=B_SPLINE_CURVE_WITH_KNOTS('cross_e0_3d',3,(#6,#7,#8,#9,#10,#11),.UNSPECIFIED.,.F.,.F.,(4,1,1,4),(0.0,0.33,0.67,1.0),.UNSPECIFIED.); 22#13=CARTESIAN_POINT('',(0.0,-6.0,0.0)); 23#14=CARTESIAN_POINT('',(6.0,-3.0,0.0)); 24#15=CARTESIAN_POINT('',(-3.0,-1.0,0.0)); 25#16=CARTESIAN_POINT('',(3.0,1.0,0.0)); 26#17=CARTESIAN_POINT('',(-6.0,3.0,0.0)); 27#18=CARTESIAN_POINT('',(0.0,6.0,0.0)); 28#19=B_SPLINE_CURVE_WITH_KNOTS('cross_e1_3d',3,(#13,#14,#15,#16,#17,#18),.UNSPECIFIED.,.F.,.F.,(4,1,1,4),(0.0,0.33,0.67,1.0),.UNSPECIFIED.); 29#20=CARTESIAN_POINT('',(-6.0,0.0)); 30#21=DIRECTION('',(1.0,0.0)); 31#22=VECTOR('',#21,12.0); 32#23=LINE('',#20,#22); 33#24=DEFINITIONAL_REPRESENTATION('',(#23),#*); 34#25=PCURVE('',#5,#24); 35#26=CARTESIAN_POINT('',(0.0,-6.0)); 36#27=DIRECTION('',(0.0,1.0)); 37#28=VECTOR('',#27,12.0); 38#29=LINE('',#26,#28); 39#30=DEFINITIONAL_REPRESENTATION('',(#29),#*); 40#31=PCURVE('',#5,#30); 41#32=SURFACE_CURVE('',#12,(#25),.PCURVE_S1.); 42#33=SURFACE_CURVE('',#19,(#31),.PCURVE_S1.); 43#34=CARTESIAN_POINT('',(-6.0,0.0,0.0)); 44#35=VERTEX_POINT('',#34); 45#36=CARTESIAN_POINT('',(6.0,0.0,0.0)); 46#37=VERTEX_POINT('',#36); 47#38=CARTESIAN_POINT('',(0.0,-6.0,0.0)); 48#39=VERTEX_POINT('',#38); 49#40=CARTESIAN_POINT('',(0.0,6.0,0.0)); 50#41=VERTEX_POINT('',#40); 51#42=EDGE_CURVE('cross_e0',#35,#37,#32,.T.); 52#43=EDGE_CURVE('cross_e1',#39,#41,#33,.T.); 53#44=ORIENTED_EDGE('',*,*,#42,.T.); 54#45=ORIENTED_EDGE('',*,*,#43,.T.); 55#46=EDGE_LOOP('',(#44,#45)); 56#47=GEOMETRIC_CURVE_SET('',(#46)); 57#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 58#9051=PRODUCT('Twi232','Twi232','',(#9050)); 59#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 60#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 61#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 62#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 63#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 64#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 65#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 66#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 67#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 68#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#47),#9060); 69#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 70ENDSEC; 71END-ISO-10303-21;