step-examples/12-4-tolerance/Tb001.stp
Sources
- synthesized time-bomb.
Description
Two `VERTEX_POINT`s referenced by an end-to-end edge pair are positioned 5e-5 mm apart in 3D. The file declares `UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-3))`. A receiver honouring the declared tolerance treats the vertices as coincident and the wire as closed. A receiver hardcoding `Precision::Confusion()` (~1e-7) treats the vertices as distinct and the wire as a free-edge defect (also called "naked edge" or "open boundary"). The file is simultaneously valid and invalid depending on tolerance interpretation; a classic round-trip time bomb where re-saving under stricter precision turns a clean import into a leaky shell.
Reproducer recipe
Two `EDGE_CURVE`s sharing an endpoint logically but with separate `VERTEX_POINT`s 5e-5 mm apart; declared `UNCERTAINTY_MEASURE_WITH_UNIT` is 1e-3. Wrap in a minimal PRODUCT chain so the receiver sees a topology to walk.
Expected kernel behavior
produce a consistent result regardless of tolerance setting within the documented operating range; either honour the declared uncertainty and treat the vertices as coincident, or reject the file with a diagnostic naming the gap distance vs. working precision. The result must not silently flip between "closed shell" and "open shell" on tolerance reconfiguration.
Notes
**See also**: N001, N010. Symptoms searchable as "STEP file looks. Synonyms: "gap closed at coarse tolerance opens at fine tolerance", "vertex gap depends on which tolerance you measure with", "model passes at 1e-3 fails at 1e-7", "tolerance choice flips connectivity". fine in viewer A but leaks in viewer B", "non-watertight after re-import", "tolerance round-trip regression". **OCC behavior**: silently accepts the file under default working precision and produces the open-shell interpretation without surfacing the gap-vs-tolerance disagreement; kernel mishandling; the catalog above requires a consistent result with diagnostic if interpretation flips.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E-3')count_entity_def(b'EDGE_CURVE') == 2count_entity_def(b'VERTEX_POINT') == 4
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/* Tb001: two VERTEX_POINTs 5e-5 mm apart on end-to-end EDGE_CURVEs; declared uncertainty 1.0E-3 â vertex gap is sub-tolerance so wire appears closed; hardcoded Precision::Confusion ~1e-7 sees a gap; GEOMETRIC_CURVE_SET as model root â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb001'),'2;1'); 5FILE_NAME('Tb001.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',(10.0,0.0,0.0)); 11#3=CARTESIAN_POINT('b0_gap_5e-5',(10.00005,0.0,0.0)); 12#4=CARTESIAN_POINT('b1',(20.00005,0.0,0.0)); 13#5=VERTEX_POINT('va0',#1); 14#6=VERTEX_POINT('va1',#2); 15#7=VERTEX_POINT('vb0_at_gap',#3); 16#8=VERTEX_POINT('vb1',#4); 17#9=DIRECTION('',(1.0,0.0,0.0)); 18#10=VECTOR('',#9,10.0); 19#11=LINE('',#1,#10); 20#12=EDGE_CURVE('eA',#5,#6,#11,.T.); 21#13=DIRECTION('',(1.0,0.0,0.0)); 22#14=VECTOR('',#13,10.0); 23#15=LINE('',#3,#14); 24#16=EDGE_CURVE('eB',#7,#8,#15,.T.); 25#17=GEOMETRIC_CURVE_SET('wire_set',(#12,#16)); 26#18=APPLICATION_CONTEXT('automotive_design'); 27#19=PRODUCT_CONTEXT('',#18,'mechanical'); 28#20=PRODUCT('Tb001','Tb001','',(#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-3),#25,'distance_accuracy_value','declared_loose_tolerance'); 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;