step-examples/12-4-tolerance/Tb023.stp
Sources
- bug-reporter language: "STEP file with huge coordinates loses precision", "GIS-style absolute coordinates", "model far from origin is wobbly"
- deduced — spatial twin of Tb013 (denormalised near-zero)
Sender
deduced — exporters from GIS-aware CAD or reality-capture pipelines that store world coordinates without local recentering
Description
A producer emits coordinates near 1e15 — for example a model whose origin sits at a real-world UTM-style position. At magnitudes near 1e15, the float64 unit-in-the-last-place is ~0.125 (the spacing between adjacent representable doubles is 2^(53-50) ≈ 2^(-2) at exponent 2^50 ≈ 1.1e15). A `LENGTH_UNIT` of `MM` plus a declared `UNCERTAINTY` of `0.001 mm` sets a kernel's working tolerance below float64's representable spacing at the model's coordinates. Vertex equality, edge connectivity, sliver-detection — every tolerance comparison is dominated by floating-point noise rather than geometric meaning. Two vertices that should be coincident at sub-tolerance distance can differ by 0.125 mm because they round to adjacent representable doubles. Bug-reporter language: "STEP coordinates near 1e15", "GIS-style absolute coords", "model far from origin loses precision", "vertices wobble at huge coords".
Reproducer recipe
a `CARTESIAN_POINT` with coordinates `(1.234567890123e15, 2.345678901234e15, 3.456789012345e15)` and a sibling point at `(1.234567890124e15, 2.345678901234e15, 3.456789012345e15)` — the two points differ by 1e3 in the original-units description but, after rounding to float64, occupy the same or adjacent representable doubles. Declared `UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001), MILLIMETRE)`.
Expected kernel behavior
surface the precision gap when the working tolerance is below the local ULP at the model's coordinates; recommend recentering to a local frame near the origin; reject as numerically meaningless if the user requests strict tolerance handling at far-from-origin scale.
Notes
Spatial twin of Tb013 (denormalised near-zero). **See also**: Tb013. Searchable as "STEP file far-from-origin", "GIS coordinates lose precision", "absolute UTM in STEP file". Synonyms: "coordinates near 1e15 lose precision", "model placed at GIS-style absolute coordinates", "vertices wobble at huge coords", "float64 ULP exceeds declared tolerance", "model far from origin loses precision".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'\d\.\d+e\+?15') or contains(b'1.234567890123e+15')contains(b'1.234567890123e15') or contains(b'1.234567890123E15') or contains(b'1234567890123')
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
1ISO-10303-21; 2/* Tb023 - Coordinates near 1.0e15 where float64 ULP exceeds declared tolerance 3 * Defect: a CARTESIAN_POINT at (1.234567890123e15, 2.345678901234e15, 4 * 3.456789012345e15) and a sibling at (1.234567890124e15, ...). At 5 * magnitudes near 1.0e15 the float64 unit-in-the-last-place is ~0.125; 6 * the declared UNCERTAINTY of 1.0e-3 mm sits below the local ULP. 7 * Vertex equality, edge connectivity, sliver detection are dominated 8 * by floating-point noise. Spatial twin of Tb013 (denormalised 9 * near-zero). */ 10HEADER; 11FILE_DESCRIPTION(('Tb023 - coordinates near 1.0e15 ULP exceeds declared tolerance'),'2;1'); 12FILE_NAME('Tb023.stp','2026-04-30T00:00:00',(''),(''),'cad-research-suite','',''); 13FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('automotive_design'); 17/* Two vertices near 1.0e15 differing by 1.0e3 in the original-units description. */ 18#10=CARTESIAN_POINT('p_far_a',(1.234567890123e15,2.345678901234e15,3.456789012345e15)); 19#11=CARTESIAN_POINT('p_far_b',(1.234567890124e15,2.345678901234e15,3.456789012345e15)); 20#20=VERTEX_POINT('v_a',#10); 21#21=VERTEX_POINT('v_b',#11); 22#30=DIRECTION('',(1.0,0.0,0.0)); 23#31=VECTOR('',#30,1.0); 24#32=LINE('',#10,#31); 25#40=EDGE_CURVE('e_far_from_origin',#20,#21,#32,.T.); 26#50=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 27#51=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 28#52=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 29/* Tolerance below local ULP: 1.0e-3 mm vs. ULP ~0.125 mm at 1.0e15. */ 30#60=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3),#50, 31 'distance_accuracy_value','tol_below_local_ULP'); 32#70=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 33 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#60)) 34 GLOBAL_UNIT_ASSIGNED_CONTEXT((#50,#51,#52)) 35 REPRESENTATION_CONTEXT('ctx','3D')); 36ENDSEC; 37END-ISO-10303-21;