step-examples/12-3b-wires/Twi129.stp
Sources
- synthesized — no external source cited
Description
Cubic B-spline whose control polygon is strictly x-monotonic, so the curve cannot cross itself: splitting it is a false positive
Reproducer recipe
Expected kernel behavior
The single edge is a degree-3 B-spline whose five control points have strictly increasing x (0, 2.5, 5, 7.5, 10), so every control point of its derivative has a positive x component: the curve is x-monotone and cannot cross itself anywhere in its range, despite an S-shaped control polygon that inflects near (5,0,0). Test for self-intersection by subdividing the actual curve and comparing non-adjacent pieces, never by reading the control polygon and never by splitting where curvature changes sign — an inflection is not a crossing — so the correct result here is no self-intersection and no split. The defect that must be reported instead is that the loop holds a single edge whose two endpoints differ, so it does not close.
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/* Twi129: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 1 edge; e1: B_SPLINE_CURVE_WITH_KNOTS degree-3 figure-8 curve; control points (0,0,0),(2.5,5,0),(5,0,0),(7.5,-5,0),(10,0,0); curve self-touches at inflection point (5,0,0) â tangential contact not transverse crossing; FixSelfIntersectingEdge split heuristic assumes transverse crossing IS defect; tangential self-touch cannot be resolved by split logic; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty; all EDGE_CURVEs ARE wired into EDGE_LOOP; never orphaned */ 3HEADER; 4FILE_DESCRIPTION(('Twi129'),'2;1'); 5FILE_NAME('Twi129.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=CARTESIAN_POINT('',(2.5,5.0,0.0)); 12#3=CARTESIAN_POINT('',(5.0,0.0,0.0)); 13#4=CARTESIAN_POINT('',(7.5,-5.0,0.0)); 14#5=CARTESIAN_POINT('',(10.0,0.0,0.0)); 15#6=B_SPLINE_CURVE_WITH_KNOTS('',3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(4,1,4),(0.0,0.5,1.0),.UNSPECIFIED.); 16#7=CARTESIAN_POINT('',(0.0,0.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(10.0,0.0,0.0)); 19#10=VERTEX_POINT('',#9); 20#11=EDGE_CURVE('',#8,#10,#6,.T.); 21#12=ORIENTED_EDGE('',$,$,#11,.T.); 22#13=EDGE_LOOP('',(#12)); 23#14=GEOMETRIC_CURVE_SET('',(#13)); 24#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 25#9051=PRODUCT('Twi129','Twi129','',(#9050)); 26#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 27#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 28#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 29#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 30#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 31#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 32#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 33#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 34#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 35#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#14),#9060); 36#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 37ENDSEC; 38END-ISO-10303-21;