Tb010 — Self-intersection that vanishes when round-tripped through float32

§12.4 (sub-class: rounding-induced topology change)

P1 — silent data loss

round-trip

Sources

Description

Variant of Tb009 where the rounding is done by the format-converter step (e.g. STEP → STL → STEP through a tool that uses `float` not `double`). Coordinates `(0, 0, 0)`, `(1.0000003, 0, 0)`, `(2.0000007, 0, 0)`, `(0.9999997, 0.0000003, 0)` form a near-degenerate quad whose diagonals cross. After float32 round-trip the coordinates collapse to `(0, 0, 0)`, `(1, 0, 0)`, `(2, 0, 0)`, `(1, 0, 0)`; the diagonals no longer cross because the duplicate point makes one edge zero-length. The "fix" was unintentional precision loss.

Reproducer recipe

Quad face with above coordinates exactly; wrap in PRODUCT chain. The fixture itself uses double precision so the self-intersection is real; the time bomb is documented in the comment as "input was generated by a float32-precision producer".

Expected kernel behavior

Warn and accept: results normalize to be invariant under coordinate precision changes within the operating range; if not invariant, the kernel emits a warning diagnostic flagging the precision sensitivity.

Notes

Synonyms: "self-intersection lost when round-tripped through float32", "float32 round-trip removes crossing", "single-precision conversion masks self-intersection", "intersection visible in double precision only".

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/* Tb010: 4 EDGE_CURVEs in self-crossing quad pattern; double-precision crossing vanishes after float32 round-trip (vertices collapse); declared 1.0E-7; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Tb010'),'2;1');
5FILE_NAME('Tb010.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('p0',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('p1_dbl_offset',(1.0000003,0.0,0.0));
11#3=CARTESIAN_POINT('p2',(2.0000007,0.0,0.0));
12#4=CARTESIAN_POINT('p3_almost_p1',(0.9999997,3.0E-07,0.0));
13#5=VERTEX_POINT('v0',#1);
14#6=VERTEX_POINT('v1',#2);
15#7=VERTEX_POINT('v2',#3);
16#8=VERTEX_POINT('v3_collapses_float32',#4);
17#9=DIRECTION('',(1.0,0.0,0.0));
18#10=VECTOR('',#9,1.0000003);
19#11=LINE('',#1,#10);
20#12=EDGE_CURVE('e01',#5,#6,#11,.T.);
21#13=DIRECTION('',(1.0,0.0,0.0));
22#14=VECTOR('',#13,1.0000004);
23#15=LINE('',#2,#14);
24#16=EDGE_CURVE('e12',#6,#7,#15,.T.);
25#17=DIRECTION('',(-1.0,2.999997E-07,0.0));
26#18=VECTOR('',#17,1.000001);
27#19=LINE('',#3,#18);
28#20=EDGE_CURVE('e23_crosses_diagonal',#7,#8,#19,.T.);
29#21=DIRECTION('',(-1.0,-3.0000009E-07,0.0));
30#22=VECTOR('',#21,0.9999997);
31#23=LINE('',#4,#22);
32#24=EDGE_CURVE('e30',#8,#5,#23,.T.);
33#25=GEOMETRIC_CURVE_SET('cs',(#12,#16,#20,#24));
34#26=APPLICATION_CONTEXT('automotive_design');
35#27=PRODUCT_CONTEXT('',#26,'mechanical');
36#28=PRODUCT('Tb010','Tb010','',(#27));
37#29=PRODUCT_DEFINITION_FORMATION('','',#28);
38#30=PRODUCT_DEFINITION_CONTEXT('part definition',#26,'design');
39#31=PRODUCT_DEFINITION('','',#29,#30);
40#32=PRODUCT_DEFINITION_SHAPE('','',#31);
41#33=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
42#34=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
43#35=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
44#36=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#33,'distance_accuracy_value','double_precision_tolerance');
45#37=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#36))GLOBAL_UNIT_ASSIGNED_CONTEXT((#33,#34,#35))REPRESENTATION_CONTEXT('ctx','3D'));
46#38=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#25),#37);
47#39=SHAPE_DEFINITION_REPRESENTATION(#32,#38);
48ENDSEC;
49END-ISO-10303-21;