step-examples/12-4-tolerance/Tb015.stp
Sources
- synthesized time-bomb.
Description
An edge has 3D length 1e-3 mm in a file with declared tolerance 1e-6. A kernel comparing `length < tol` says "alive". A kernel comparing `length < sqrt(tol) ≈ 1e-3` says "right at the boundary — ambiguous". A kernel comparing `length*length < tol` (≡ `length < sqrt(tol)`) says the same boundary. The triple ambiguity (linear, squared, square-root) means three reasonable kernels can disagree on whether the edge survives heal.
Reproducer recipe
`EDGE_CURVE` of 3D length 1e-3 mm in a wrapped shell representation with declared uncertainty 1e-6.
Expected kernel behavior
Heal and accept: normalize the comparison policy to a documented form; documentation specifies whether thresholds are linear, squared, or square-rooted.
Notes
Synonyms: "edge length right at sqrt(tolerance)", "is comparison squared or linear ambiguous", "edge size at sqrt(tol) trips classifier", "boundary case for squared vs linear edge comparison".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E-6')count_entity_def(b'EDGE_CURVE') == 1
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tb015: EDGE_CURVE of length 1.0E-3 mm with declared tol 1.0E-6; sqrt(1.0E-6) ~= 1.0E-3 â right at threshold for squared comparison; linear/squared/sqrt policies disagree on edge survival; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Tb015'),'2;1'); 5FILE_NAME('Tb015.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_at_1e-3',(0.001,0.0,0.0)); 11#3=VERTEX_POINT('v0',#1); 12#4=VERTEX_POINT('v1_short_edge_1e-3',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,0.001); 15#7=LINE('',#1,#6); 16#8=EDGE_CURVE('e_at_sqrt_tol_threshold',#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('Tb015','Tb015','',(#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-6),#17,'distance_accuracy_value','tol_whose_sqrt_equals_edge_length'); 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;