step-examples/12-4-tolerance/N025.stp
Sources
- 21-patents X005 (US 9,607,422 B1 MSC/Hexagon)
- 21-patents X003
- 11-translator-vendors W003 (crack)
- W045 (duplicate vertices)
Description
Imported B-reps regularly contain pairs of vertices and edges that the designer intended to be the same but which sit a few microns apart due to translator round-off. Coordinates agree to 1e-4 but topology stores them as distinct entities; a "crack" rather than a "gap" because geometric distance is zero by some metrics yet topology is broken.
Reproducer recipe
STEP file from translator A whose two adjacent `ADVANCED_FACE`s each instantiate their own `VERTEX_POINT` for the corner; coordinates agree to 1e-4.
Expected kernel behavior
heal; stitch by spatial proximity within tolerance; merge duplicate vertices and split/reconcile edges.
Notes
**See also**: N007. Synonyms: "vertices coincide spatially but topology distinct", "coincident edges not shared after translation", "topology cracks despite zero distance", "coordinates equal but vertices not the same entity".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'VERTEX_POINT') == 4count_entity_def(b'EDGE_CURVE') == 2contains(b'1.0E-7')
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/* N025: 4 VERTEX_POINTs for what should be 2 shared corners; 2 EDGE_CURVEs with near-coincident (1.0E-4 mm jitter) separate vertices; topology crack despite near-zero distance; GEOMETRIC_CURVE_SET â OCC empty */ 3HEADER; 4FILE_DESCRIPTION(('N025'),'2;1'); 5FILE_NAME('N025.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('face1_v0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('face1_v1',(10.0,0.0,0.0)); 11#3=CARTESIAN_POINT('face2_v0_jitter',(0.0001,0.0,0.0)); 12#4=CARTESIAN_POINT('face2_v1_jitter',(10.0001,0.0,0.0)); 13#5=VERTEX_POINT('va0_face1',#1); 14#6=VERTEX_POINT('va1_face1',#2); 15#7=VERTEX_POINT('vb0_face2_jitter',#3); 16#8=VERTEX_POINT('vb1_face2_jitter',#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_face1',#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_face2_jitter',#7,#8,#15,.T.); 25#17=GEOMETRIC_CURVE_SET('cracked',(#12,#16)); 26#18=APPLICATION_CONTEXT('automotive_design'); 27#19=PRODUCT_CONTEXT('',#18,'mechanical'); 28#20=PRODUCT('N025','N025','',(#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-7),#25,'distance_accuracy_value','source_precision'); 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;