step-examples/12-4-tolerance/Tb008.stp
Sources
- synthesized time-bomb.
Description
Like Tb007 but the knot vector is scaled; knots `(0.0, 1e-2, 1.0e6)`. The inner knot is "tiny" against the full range (relative spacing ~1e-8) but "large" in absolute terms (1e-2). A receiver using *absolute* parametric tolerance keeps the knot; a receiver using *relative* parametric tolerance (knot-spacing / range) drops it. The same curve evaluates differently under the two policies. Producers that emit large parametric domains (often from re-parameterization or splice operations) hit this regularly.
Reproducer recipe
Cubic `B_SPLINE_CURVE_WITH_KNOTS` with knots `(0.0, 1.0E-2, 1.0E6)` multiplicities `(4, 1, 4)`, five control points spread across the parametric range; wrap in PRODUCT chain.
Expected kernel behavior
Heal and accept: normalize to a single documented policy (absolute or relative) for knot-equivalence; the policy is transparently emitted in diagnostics.
Notes
**See also**: Tb007. Synonyms: "knot tolerance scaled by parametric range", "absolute knot tolerance wrong on stretched parameter", "NURBS knot comparison ignores range scaling", "stretched parameter range hides distinct knots".
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-6')
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/* Tb008: B_SPLINE_CURVE_WITH_KNOTS with knots (0.0,1.0E-2,1.0E6); inner knot 1.0E-2 tiny relative to range 1.0E6 (~1e-8 relative) but large absolute; absolute vs relative knot-tolerance policies produce different curves; OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb008'),'2;1'); 5FILE_NAME('Tb008.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',(250000.0,1.0,0.0)); 11#3=CARTESIAN_POINT('cp2',(500000.0,0.5,0.0)); 12#4=CARTESIAN_POINT('cp3',(750000.0,1.0,0.0)); 13#5=CARTESIAN_POINT('cp4',(1000000.0,0.0,0.0)); 14#6=B_SPLINE_CURVE_WITH_KNOTS('large_param_range',3,(#1,#2,#3,#4,#5),.UNSPECIFIED.,.F.,.F.,(4,1,4),(0.0,1.0E-2,1.0E6),.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('Tb008','Tb008','',(#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-6),#18,'distance_accuracy_value','default_tolerance'); 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;