Twi172 — Cubic B-spline with two coincident interior control points: the tangent never vanishes, so the flat spot is a horizontal tangent and not a cusp

§12.3b

topology

Sources

Description

Cubic B-spline with two coincident interior control points: the tangent never vanishes, so the flat spot is a horizontal tangent and not a cusp

Reproducer recipe

Expected kernel behavior

The edge's curve is a clamped cubic Bezier with duplicated interior control points, both (5,10), so its derivative's control points are (5,10), (0,0) and (5,-10), and dx/dt = 5(1-t)^2 + 5t^2 is never below 2.5: the tangent never vanishes, the curve is x-monotone, and there is no cusp and no self-intersection. Detect cusps by evaluating the derivative rather than by looking for repeated control points, and return the edge unsplit — the flat spot at t=0.5 is only a horizontal tangent (dy/dt = 0), which is not a cusp. Splitting there would produce two edges where one is correct.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Twi172: GEOMETRIC_CURVE_SET containing EDGE_LOOP with 1 B-spline edge on PLANE; PLANE: normal +Z, origin (0,0,0); B-spline degree-3 curve with cusp at t=0.5 — control points fold back so that the derivative ∂C/∂t = 0 at midpoint parameter IS the defect; edge labelled 'cusp_zero_derivative_midpoint'; FixSelfIntersectingEdge IS the mechanism — attempts tangent at cusp and fails because zero derivative prevents intersection test direction computation; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty; EDGE_CURVE IS wired into EDGE_LOOP; never orphaned */
3HEADER;
4FILE_DESCRIPTION(('Twi172'),'2;1');
5FILE_NAME('Twi172.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=CARTESIAN_POINT('',(5.0,10.0,0.0));
17#8=CARTESIAN_POINT('',(5.0,10.0,0.0));
18#9=CARTESIAN_POINT('',(10.0,0.0,0.0));
19#10=B_SPLINE_CURVE_WITH_KNOTS('cusp_zero_derivative_midpoint',3,(#6,#7,#8,#9),.UNSPECIFIED.,.F.,.F.,(4,4),(0.0,1.0),.UNSPECIFIED.);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=VERTEX_POINT('',#11);
22#13=CARTESIAN_POINT('',(10.0,0.0,0.0));
23#14=VERTEX_POINT('',#13);
24#15=EDGE_CURVE('cusp_zero_derivative_midpoint',#12,#14,#10,.T.);
25#16=ORIENTED_EDGE('',*,*,#15,.T.);
26#17=EDGE_LOOP('',(#16));
27#18=GEOMETRIC_CURVE_SET('',(#17));
28#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
29#9051=PRODUCT('Twi172','Twi172','',(#9050));
30#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
31#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
32#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
33#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
34#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
35#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
36#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
37#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
38#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
39#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#18),#9060);
40#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
41ENDSEC;
42END-ISO-10303-21;