Xp005 — NURBS knot vector × control-point weight × tolerance-boundary cusp

§12.12 cross-product (NURBS × tolerance)

P1 — silent data loss

interop

Sources

Description

A `RATIONAL_B_SPLINE_CURVE` has a knot vector with two consecutive equal knots not justified by multiplicity; one of its weights is zero (rendering the rational evaluation indeterminate at that pole); and the control polygon has a cusp where two consecutive control points are separated by ~1e-7; exactly at the OCCT default `Precision:: Confusion()` boundary. Three independent NURBS-quality invariants are violated.

Reproducer recipe

Cubic `(BOUNDED_CURVE() B_SPLINE_CURVE(..) RATIONAL_B_SPLINE_CURVE(..) ..)` with five control points, knot vector `(0,0,0,0,0.5,0.5,1,1,1,1)` (the inner pair is duplicated without justification), weights `(1.0,0.0,1.0,1.0,1.0)`, and CPs `(0,0,0)`, `(1e-7,0,0)`, `(1,0,0)`, `(2,1,0)`, `(3,0,0)`.

Expected kernel behavior

Heal and accept, or reject with E_NURBS_INVARIANT diagnostic: each NURBS invariant is inspected independently; the cusp-at-tolerance-boundary case is decided by the kernel's working precision policy.

Expected validation

occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Xp005: NURBS knot vector x control-point weight x tolerance-boundary cusp */
3HEADER;
4FILE_DESCRIPTION(('Xp005'),'2;1');
5FILE_NAME('Xp005.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('',(1.0E-07,0.0,0.0));
12#3=CARTESIAN_POINT('',(1.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(2.0,1.0,0.0));
14#5=CARTESIAN_POINT('',(3.0,0.0,0.0));
15#6=CARTESIAN_POINT('',(0.0,0.0,0.0));
16#7=DIRECTION('',(0.0,0.0,1.0));
17#8=DIRECTION('',(1.0,0.0,0.0));
18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8);
19#10=PLANE('',#9);
20#11=CARTESIAN_POINT('',(0.0,0.0,0.0));
21#12=CARTESIAN_POINT('',(1.0,0.0,0.0));
22#13=CARTESIAN_POINT('',(1.0,1.0,0.0));
23#14=CARTESIAN_POINT('',(0.0,1.0,0.0));
24#15=VERTEX_POINT('',#11);
25#16=VERTEX_POINT('',#12);
26#17=VERTEX_POINT('',#13);
27#18=VERTEX_POINT('',#14);
28#19=DIRECTION('',(1.0,0.0,0.0));
29#20=VECTOR('',#19,1.0);
30#21=LINE('',#11,#20);
31#22=EDGE_CURVE('',#15,#16,#21,.T.);
32#23=DIRECTION('',(0.0,1.0,0.0));
33#24=VECTOR('',#23,1.0);
34#25=LINE('',#12,#24);
35#26=EDGE_CURVE('',#16,#17,#25,.T.);
36#27=DIRECTION('',(-1.0,0.0,0.0));
37#28=VECTOR('',#27,1.0);
38#29=LINE('',#13,#28);
39#30=EDGE_CURVE('',#17,#18,#29,.T.);
40#31=DIRECTION('',(0.0,-1.0,0.0));
41#32=VECTOR('',#31,1.0);
42#33=LINE('',#14,#32);
43#34=EDGE_CURVE('',#18,#15,#33,.T.);
44#35=ORIENTED_EDGE('',$,$,#22,.T.);
45#36=ORIENTED_EDGE('',$,$,#26,.T.);
46#37=ORIENTED_EDGE('',$,$,#30,.T.);
47#38=ORIENTED_EDGE('',$,$,#34,.T.);
48#39=EDGE_LOOP('',(#35,#36,#37,#38));
49#40=FACE_OUTER_BOUND('',#39,.T.);
50#41=ADVANCED_FACE('',(#40),#10,.T.);
51#42=OPEN_SHELL('',(#41));
52#43=SHELL_BASED_SURFACE_MODEL('',(#42));
53#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
54#9051=PRODUCT('Xp005','Xp005','',(#9050));
55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
57#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060);
65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
66#9063=(B_SPLINE_CURVE(3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.)B_SPLINE_CURVE_WITH_KNOTS((4,2,4),(0.0,0.5,1.0),.UNSPECIFIED.)BOUNDED_CURVE()CURVE()GEOMETRIC_REPRESENTATION_ITEM()RATIONAL_B_SPLINE_CURVE((1.0,0.0,1.0,1.0,1.0))REPRESENTATION_ITEM('xp005_defective_nurbs'));
67ENDSEC;
68END-ISO-10303-21;