step-examples/12-4-tolerance/Tb002.stp
Sources
- synthesized time-bomb.
Description
Inverse of Tb001. Vertices are 5e-5 mm apart but the file declares `1e-7` uncertainty. A 1e-7 receiver treats them as separate (which the input is honestly representing). A receiver that loosens tolerance to 1e-3 — for example a downstream Boolean engine that uses `tol*1000` for fuzzy operations — folds them together and silently changes the topology (shared edge becomes single edge, two faces become one). The "fix" applied by the lax tolerance receiver actively corrupts the input.
Reproducer recipe
Two `VERTEX_POINT`s at (0,0,0) and (5e-5,0,0) on separate `EDGE_CURVE`s; `UNCERTAINTY_MEASURE_WITH_UNIT` is 1e-7. Wrap in PRODUCT chain.
Expected kernel behavior
produce a consistent result regardless of tolerance setting; if the kernel relaxes tolerance for any operation, it must flag the topology change and not silently merge entities the input declared distinct.
Notes
**See also**: Tb001. Searchable as "Boolean op silently merged. Synonyms: "gap closed at fine tolerance grows at coarse tolerance", "coarse tolerance creates gap that fine doesn't see", "1e-3 reader sees gap that 1e-7 doesn't", "tolerance setting changes connectivity". separate features", "two edges became one after import".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E-7')count_entity_def(b'EDGE_CURVE') == 3count_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/* Tb002: two VERTEX_POINTs 5e-5 mm apart; declared uncertainty 1.0E-7 (strict) means they are distinct; lax receiver merging at 1e-3 corrupts topology; three EDGE_CURVEs including 5e-5 mm bridge; OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb002'),'2;1'); 5FILE_NAME('Tb002.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_5e-5_apart',(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_distinct',#2); 15#7=VERTEX_POINT('vb0_distinct',#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,5.0E-05); 23#15=LINE('',#2,#14); 24#16=EDGE_CURVE('eBridge_5e-5',#6,#7,#15,.T.); 25#17=DIRECTION('',(1.0,0.0,0.0)); 26#18=VECTOR('',#17,10.0); 27#19=LINE('',#3,#18); 28#20=EDGE_CURVE('eB',#7,#8,#19,.T.); 29#21=GEOMETRIC_CURVE_SET('wire_set',(#12,#16,#20)); 30#22=APPLICATION_CONTEXT('automotive_design'); 31#23=PRODUCT_CONTEXT('',#22,'mechanical'); 32#24=PRODUCT('Tb002','Tb002','',(#23)); 33#25=PRODUCT_DEFINITION_FORMATION('','',#24); 34#26=PRODUCT_DEFINITION_CONTEXT('part definition',#22,'design'); 35#27=PRODUCT_DEFINITION('','',#25,#26); 36#28=PRODUCT_DEFINITION_SHAPE('','',#27); 37#29=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 38#30=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 39#31=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 40#32=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#29,'distance_accuracy_value','declared_strict_tolerance'); 41#33=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#32))GLOBAL_UNIT_ASSIGNED_CONTEXT((#29,#30,#31))REPRESENTATION_CONTEXT('ctx','3D')); 42#34=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#21),#33); 43#35=SHAPE_DEFINITION_REPRESENTATION(#28,#34); 44ENDSEC; 45END-ISO-10303-21;