step-examples/12-4-tolerance/Tb007.stp
Sources
- synthesized time-bomb.
Description
A `B_SPLINE_CURVE_WITH_KNOTS` has knot vector `(0.0, 1e-8, 1.0)` with multiplicities `(degree+1, 1, degree+1)`. A receiver that collapses near-equal knots within `Precision::PConfusion()` (~1e-9) preserves the inner knot. A receiver collapsing within `Precision::Confusion()` (~1e-7) merges it into the leading knot, effectively raising leading multiplicity by 1 and degenerating the curve start. The B-spline curve has different topology (knot count, control point relevance) under the two regimes.
Reproducer recipe
Cubic `B_SPLINE_CURVE_WITH_KNOTS` with knots `(0.0, 1e-8, 1.0)`, multiplicities `(4, 1, 4)`, five control points; wrap in a `TRIMMED_CURVE` and a minimal PRODUCT-bound shape representation.
Expected kernel behavior
knot-equivalence threshold must be derived from a documented invariant; the curve evaluator must produce identical geometry under both interpretations or reject the input as ambiguous.
Notes
**See also**: Gn001, Gn003. Searchable as "B-spline knot. Synonyms: "B-spline knots differ below tolerance", "knot collapses under fuzzy compare", "NURBS knot quantum below working precision", "indistinguishable knots in B_SPLINE_CURVE_WITH_KNOTS". collapsed unexpectedly", "different curve in different viewers".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'B_SPLINE_CURVE_WITH_KNOTS')count_entity_def(b'CARTESIAN_POINT') == 5contains(b'1.0E-7')
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tb007: B_SPLINE_CURVE_WITH_KNOTS with inner knot at 1.0E-8 between Precision::PConfusion(~1e-9) and Precision::Confusion(~1e-7); knot collapses under loose policy, raising leading multiplicity to 5; OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb007'),'2;1'); 5FILE_NAME('Tb007.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('cp0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('cp1',(1.0,1.0,0.0)); 11#3=CARTESIAN_POINT('cp2',(2.0,0.5,0.0)); 12#4=CARTESIAN_POINT('cp3',(3.0,1.0,0.0)); 13#5=CARTESIAN_POINT('cp4',(4.0,0.0,0.0)); 14#6=B_SPLINE_CURVE_WITH_KNOTS('knot_quantum_1e-8',3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(4,1,4),(0.0,1.0E-8,1.0),.UNSPECIFIED.); 15#7=VERTEX_POINT('vstart',#1); 16#8=VERTEX_POINT('vend',#5); 17#9=EDGE_CURVE('e',#7,#8,#6,.T.); 18#10=GEOMETRIC_CURVE_SET('cs',(#9)); 19#11=APPLICATION_CONTEXT('automotive_design'); 20#12=PRODUCT_CONTEXT('',#11,'mechanical'); 21#13=PRODUCT('Tb007','Tb007','',(#12)); 22#14=PRODUCT_DEFINITION_FORMATION('','',#13); 23#15=PRODUCT_DEFINITION_CONTEXT('part definition',#11,'design'); 24#16=PRODUCT_DEFINITION('','',#14,#15); 25#17=PRODUCT_DEFINITION_SHAPE('','',#16); 26#18=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#19=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#20=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29#21=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#18,'distance_accuracy_value','tolerance_at_knot_quantum_boundary'); 30#22=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#21))GLOBAL_UNIT_ASSIGNED_CONTEXT((#18,#19,#20))REPRESENTATION_CONTEXT('ctx','3D')); 31#23=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#10),#22); 32#24=SHAPE_DEFINITION_REPRESENTATION(#17,#23); 33ENDSEC; 34END-ISO-10303-21;