Tb009 — Self-intersection visible at full precision but rounded out at receiver tolerance

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

topology

Sources

Description

A wire's two consecutive edges cross at a separation of 3e-7 mm (well-defined and detectable by an exact-arithmetic kernel). A receiver that rounds coordinates to its working precision (1e-6) before intersection-testing sees the two edges as touching at a single point and reports the wire as simple. An exact kernel, or one with `tol < 3e-7`, reports a self-intersection. Two kernels disagree on whether the input is malformed.

Reproducer recipe

Two short B-spline edges crossing in 3D at separation 3e-7 mm; declared `UNCERTAINTY_MEASURE_WITH_UNIT` is 1e-6 (looser than the crossing). Wrap in a face with the crossing wire as `FACE_OUTER_BOUND` and a PRODUCT chain.

Expected kernel behavior

Warn and accept: self-intersection detection normalizes to a documented threshold, not the working precision; if the threshold is the working precision, the kernel emits a warning diagnostic that "self-intersection within working precision" is the same input class as "no self-intersection".

Notes

**See also**: Twi045. Searchable as "wire ok in one tool,. Synonyms: "self-intersection rounded out at receiver precision", "near-tangent crossing lost in rounding", "wire crosses itself at sub-tolerance distance", "self-intersection visible only at full precision". self-intersecting in another", "rounded coordinates fixed self-intersection".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Twi045

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Tb009: two EDGE_CURVEs crossing at 3.0E-7 mm separation below declared 1.0E-6 tolerance; receiver rounding to 1e-6 sees edges touching (no self-intersection); exact receiver sees self-intersection; GEOMETRIC_CURVE_SET — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Tb009'),'2;1');
5FILE_NAME('Tb009.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('a0',(0.0,0.0,0.0));
10#2=CARTESIAN_POINT('a1',(1.0,0.0,0.0));
11#3=CARTESIAN_POINT('b0_below_3e-7',(0.5,-3.0E-07,0.0));
12#4=CARTESIAN_POINT('b1',(0.5,1.0,0.0));
13#5=VERTEX_POINT('va0',#1);
14#6=VERTEX_POINT('va1',#2);
15#7=VERTEX_POINT('vb0',#3);
16#8=VERTEX_POINT('vb1',#4);
17#9=DIRECTION('',(1.0,0.0,0.0));
18#10=VECTOR('',#9,1.0);
19#11=LINE('',#1,#10);
20#12=EDGE_CURVE('eA',#5,#6,#11,.T.);
21#13=DIRECTION('',(0.0,1.0,0.0));
22#14=VECTOR('',#13,1.0000003);
23#15=LINE('',#3,#14);
24#16=EDGE_CURVE('eB',#7,#8,#15,.T.);
25#17=GEOMETRIC_CURVE_SET('cs',(#12,#16));
26#18=APPLICATION_CONTEXT('automotive_design');
27#19=PRODUCT_CONTEXT('',#18,'mechanical');
28#20=PRODUCT('Tb009','Tb009','',(#19));
29#21=PRODUCT_DEFINITION_FORMATION('','',#20);
30#22=PRODUCT_DEFINITION_CONTEXT('part definition',#18,'design');
31#23=PRODUCT_DEFINITION('','',#21,#22);
32#24=PRODUCT_DEFINITION_SHAPE('','',#23);
33#25=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
34#26=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
35#27=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
36#28=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-6),#25,'distance_accuracy_value','tol_above_intersection_separation');
37#29=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#28))GLOBAL_UNIT_ASSIGNED_CONTEXT((#25,#26,#27))REPRESENTATION_CONTEXT('ctx','3D'));
38#30=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#17),#29);
39#31=SHAPE_DEFINITION_REPRESENTATION(#24,#30);
40ENDSEC;
41END-ISO-10303-21;