Tb013 — Coordinate at 1e-300 tests as "near zero" only under denormalized math

§12.4 (sub-class: float-special-value × tolerance)

P1 — silent data loss

crash

Sources

Description

A `CARTESIAN_POINT` has coordinate `(1.0E-300, 0, 0)` — a denormalized double. A kernel comparing `|x| < tol` for tol=1e-7 says "yes, near zero". A kernel comparing `x*x < tol*tol = 1e-14` says `1e-600` which underflows to 0, also "yes, near zero". A kernel that flushes-to-zero in its math library may treat `1e-300` as exactly zero before any tolerance compare. A kernel without flush-to-zero may keep the value alive and trip on `1.0/(1e-300)` overflow elsewhere. The same input behaves differently depending on the host's float environment.

Reproducer recipe

`CARTESIAN_POINT('escape',(1.0E-300,0.0,0.0))` used as one vertex of a degenerate edge in a wrapped face; declared tolerance 1e-7.

Expected kernel behavior

subnormal/denormal coordinates must be rejected or normalized to a documented sentinel before downstream math; the "near zero" classification must be defined explicitly.

Notes

Searchable as "NaN after import", "kernel crash on tiny. Synonyms: "coordinate at 1e-300 fails near-zero test", "denormalized math affects tolerance compare", "subnormal coordinate values affect equality", "extreme small coord triggers denormal handling". coordinate", "underflow during transform".

Expected validation

occt=empty/empty gmsh=empty 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/* Tb013: CARTESIAN_POINT at (1.0E-300,0,0) — denormalized double; flush-to-zero math sees 0; exact math risks 1/1e-300=1e+300 overflow; declared 1.0E-7; one EDGE_CURVE; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Tb013'),'2;1');
5FILE_NAME('Tb013.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('p_denorm',(1.0E-300,0.0,0.0));
10#2=CARTESIAN_POINT('p_normal',(1.0,0.0,0.0));
11#3=VERTEX_POINT('v_denorm_x',#1);
12#4=VERTEX_POINT('v_normal',#2);
13#5=DIRECTION('',(1.0,0.0,0.0));
14#6=VECTOR('',#5,1.0);
15#7=LINE('',#1,#6);
16#8=EDGE_CURVE('e_from_denorm_to_normal',#3,#4,#7,.T.);
17#9=GEOMETRIC_CURVE_SET('cs',(#8));
18#10=APPLICATION_CONTEXT('automotive_design');
19#11=PRODUCT_CONTEXT('',#10,'mechanical');
20#12=PRODUCT('Tb013','Tb013','',(#11));
21#13=PRODUCT_DEFINITION_FORMATION('','',#12);
22#14=PRODUCT_DEFINITION_CONTEXT('part definition',#10,'design');
23#15=PRODUCT_DEFINITION('','',#13,#14);
24#16=PRODUCT_DEFINITION_SHAPE('','',#15);
25#17=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
26#18=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
27#19=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
28#20=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#17,'distance_accuracy_value','tol_far_above_denormal');
29#21=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#20))GLOBAL_UNIT_ASSIGNED_CONTEXT((#17,#18,#19))REPRESENTATION_CONTEXT('ctx','3D'));
30#22=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#9),#21);
31#23=SHAPE_DEFINITION_REPRESENTATION(#16,#22);
32ENDSEC;
33END-ISO-10303-21;