Gn034 — B-spline knots packed below parametric resolution

§12.2b NURBS / B-spline (sub-class: knot vector)

geometry

Sources

Description

Two consecutive knots in a B_SPLINE_CURVE_WITH_KNOTS or B_SPLINE_SURFACE_WITH_KNOTS differ by less than the kernel's parametric epsilon (e.g., 1e-12 between knots at 0.5 and 0.5+1e-12). The interval is non-empty in IEEE-754 but rounds to zero in many spline-evaluation routines, producing NaN or unstable derivatives at parameters within the gap.

Reproducer recipe

Degree-2 B-spline with knot vector `(0,0,0, 0.5, 0.500000000001, 1,1,1)` and interior multiplicity 1 between the two near-equal knots.

Expected kernel behavior

detect knots whose separation is below working precision; either widen the gap (by perturbing one knot up to nominal precision), merge the two knots and adjust multiplicity, or reject the curve as numerically ill-conditioned.

Notes

Same defect on surface knot vectors should be flagged identically. **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit) shows the empty is not caused by the declared defect (knots packed below parametric resolution): the model is one hand-authored ADVANCED_FACE (B-spline surface with per-edge SURFACE_CURVE/PCURVE) in an OPEN_SHELL that OCC's STEP transfer never builds into a TopoDS face. Base, a CLEAN copy with the injected C-1-break defect edge closed, and a fully well-formed copy (declared defect repaired, scaffold pcurve domains corrected) are all empty (f=0); a genuinely-building B-spline face fixture (Gn024) loads f=1. The silent-empty is toy single-face topology, not a defect-driven silent data-loss, so this is not a proven kernel bug. Synonyms: "B-spline knots packed below parametric resolution", "consecutive knots differ by less than working epsilon", "near-equal knots produce NaN derivatives", "knot interval rounds to zero", "BSpline ill-conditioned at near-coincident knot pair".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Gn024

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Gn034: B_SPLINE_CURVE_WITH_KNOTS degree-2 6-CP: knot vector (0.0,0.0,0.0,0.5,0.500000000001,1.0,1.0,1.0) — consecutive interior knots 0.5 and 0.500000000001 differ by 1e-12 (below parametric epsilon); IEEE-754 non-empty interval rounds to zero in spline evaluation routines producing NaN or unstable derivatives; C-1 positional break at t=0.5 (1.5-unit CP gap) also present to drive shape_null=True */
3HEADER;
4FILE_DESCRIPTION(('Gn034'),'2;1');
5FILE_NAME('Gn034.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('plane_ax',#1,#2,#3);
14#5=PLANE('flat_plane',#4);
15#6=(GEOMETRIC_REPRESENTATION_CONTEXT(2)PARAMETRIC_REPRESENTATION_CONTEXT()REPRESENTATION_CONTEXT('UV','2D'));
16#7=CARTESIAN_POINT('',(0.0,0.0,0.0));
17#8=CARTESIAN_POINT('',(1.25,0.0,0.0));
18#9=CARTESIAN_POINT('',(2.5,0.0,0.0));
19#10=CARTESIAN_POINT('',(4.0,0.0,0.0));
20#11=CARTESIAN_POINT('',(4.75,0.0,0.0));
21#12=CARTESIAN_POINT('',(5.0,0.0,0.0));
22#13=B_SPLINE_CURVE_WITH_KNOTS('packed_knots_curve',2,(#7,#8,#9,#10,#11,#12),.UNSPECIFIED.,.F.,.F.,(3,1,1,3),(0.0,0.5,0.500000000001,1.0),.UNSPECIFIED.);
23#14=CARTESIAN_POINT('',(0.0,0.0));
24#15=CARTESIAN_POINT('',(0.25,0.0));
25#16=CARTESIAN_POINT('',(0.5,0.0));
26#17=CARTESIAN_POINT('',(0.5,0.0));
27#18=CARTESIAN_POINT('',(0.75,0.0));
28#19=CARTESIAN_POINT('',(1.0,0.0));
29#20=B_SPLINE_CURVE_WITH_KNOTS('packed_pc',2,(#14,#15,#16,#17,#18,#19),.UNSPECIFIED.,.F.,.F.,(3,3,3),(0.0,0.5,1.0),.UNSPECIFIED.);
30#21=DEFINITIONAL_REPRESENTATION('gn034_pcdef',(#20),#6);
31#22=PCURVE('gn034_pc_ent',#5,#21);
32#23=SURFACE_CURVE('gn034_sc',#13,(#22),.PCURVE_S1.);
33#24=CARTESIAN_POINT('',(0.0,0.0,0.0));
34#25=CARTESIAN_POINT('',(5.0,0.0,0.0));
35#26=CARTESIAN_POINT('',(5.0,5.0,0.0));
36#27=CARTESIAN_POINT('',(0.0,5.0,0.0));
37#28=VERTEX_POINT('',#24);
38#29=VERTEX_POINT('',#25);
39#30=VERTEX_POINT('',#26);
40#31=VERTEX_POINT('',#27);
41#32=EDGE_CURVE('gn034_edge',#28,#29,#23,.T.);
42#33=CARTESIAN_POINT('',(5.0,0.0,0.0));
43#34=DIRECTION('',(0.0,1.0,0.0));
44#35=VECTOR('',#34,5.0);
45#36=LINE('',#33,#35);
46#37=CARTESIAN_POINT('',(5.0,0.0));
47#38=DIRECTION('',(0.0,1.0));
48#39=VECTOR('',#38,5.0);
49#40=LINE('',#37,#39);
50#41=DEFINITIONAL_REPRESENTATION('pcdef',(#40),#6);
51#42=PCURVE('pc',#5,#41);
52#43=SURFACE_CURVE('sc',#36,(#42),.PCURVE_S1.);
53#44=EDGE_CURVE('ec',#29,#30,#43,.T.);
54#45=CARTESIAN_POINT('',(5.0,5.0,0.0));
55#46=DIRECTION('',(-1.0,0.0,0.0));
56#47=VECTOR('',#46,5.0);
57#48=LINE('',#45,#47);
58#49=CARTESIAN_POINT('',(5.0,5.0));
59#50=DIRECTION('',(-1.0,0.0));
60#51=VECTOR('',#50,5.0);
61#52=LINE('',#49,#51);
62#53=DEFINITIONAL_REPRESENTATION('pcdef',(#52),#6);
63#54=PCURVE('pc',#5,#53);
64#55=SURFACE_CURVE('sc',#48,(#54),.PCURVE_S1.);
65#56=EDGE_CURVE('ec',#30,#31,#55,.T.);
66#57=CARTESIAN_POINT('',(0.0,5.0,0.0));
67#58=DIRECTION('',(0.0,-1.0,0.0));
68#59=VECTOR('',#58,5.0);
69#60=LINE('',#57,#59);
70#61=CARTESIAN_POINT('',(0.0,5.0));
71#62=DIRECTION('',(0.0,-1.0));
72#63=VECTOR('',#62,5.0);
73#64=LINE('',#61,#63);
74#65=DEFINITIONAL_REPRESENTATION('pcdef',(#64),#6);
75#66=PCURVE('pc',#5,#65);
76#67=SURFACE_CURVE('sc',#60,(#66),.PCURVE_S1.);
77#68=EDGE_CURVE('ec',#31,#28,#67,.T.);
78#69=ORIENTED_EDGE('',$,$,#32,.T.);
79#70=ORIENTED_EDGE('',$,$,#44,.T.);
80#71=ORIENTED_EDGE('',$,$,#56,.T.);
81#72=ORIENTED_EDGE('',$,$,#68,.T.);
82#73=EDGE_LOOP('',(#69,#70,#71,#72));
83#74=FACE_OUTER_BOUND('',#73,.T.);
84#75=ADVANCED_FACE('',(#74),#5,.T.);
85#76=OPEN_SHELL('',(#75));
86#77=SHELL_BASED_SURFACE_MODEL('',(#76));
87#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
88#9051=PRODUCT('Gn034','Gn034','',(#9050));
89#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
90#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
91#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
92#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
93#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
94#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
95#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
96#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
97#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
98#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#77),#9060);
99#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
100ENDSEC;
101END-ISO-10303-21;