step-examples/12-4-tolerance/N014.stp
Sources
- 15-academic L030 (arXiv 2310.10351)
Description
An intersection edge that ought to be zero-length persists due to misclassification at the topological filtering step. Both endpoints lie within tolerance of a single corrected position, but the filter treats them as distinct. Typical signature: an `EDGE_CURVE` between vertices at (2e-8,0,0) and (-2e-8,0,0) — length 4e-8 mm — with declared `distance_accuracy` 1e-7 mm, so the two vertices are several times closer than the tolerance and the edge should collapse to a single vertex.
Reproducer recipe
Two surfaces tangent along a curve with a single contact point; numerical noise produces a short crossing edge near that point.
Expected kernel behavior
heal; detect that both endpoints are within tolerance of one common corrected position; collapse the edge to a vertex.
Notes
Synonyms: "tiny edge that should have collapsed", "vertex separation below declared tolerance but edge survives", "intersection edge that should be zero-length", "filter doesn't merge near-coincident vertices into one".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'1.0E-7')count_entity_def(b'VERTEX_POINT') == 2
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/* N014: EDGE_CURVE between vtx at (2e-8,0,0) and (-2e-8,0,0); length 4.0E-8 mm < declared tol 1.0E-7; both vertices within tol of one corrected position; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N014'),'2;1'); 5FILE_NAME('N014.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('vtx_pos',(2.0E-08,0.0,0.0)); 10#2=CARTESIAN_POINT('vtx_neg',(-2.0E-08,0.0,0.0)); 11#3=VERTEX_POINT('v_pos',#1); 12#4=VERTEX_POINT('v_neg',#2); 13#5=DIRECTION('',(-1.0,0.0,0.0)); 14#6=VECTOR('',#5,4.0E-08); 15#7=LINE('tiny_line',#1,#6); 16#8=EDGE_CURVE('should_have_collapsed',#3,#4,#7,.T.); 17#9=GEOMETRIC_CURVE_SET('edges',(#8)); 18#10=APPLICATION_CONTEXT('automotive_design'); 19#11=PRODUCT_CONTEXT('',#10,'mechanical'); 20#12=PRODUCT('N014','N014','',(#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-7),#17,'distance_accuracy_value','tol_covers_edge'); 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;