step-examples/12-4-tolerance/N002.stp
Sources
- 03-occt-tests R029 (OCC14846)
Description
A wireframe gap-fixing pass increases the maximum tolerance carried by edges and vertices to encompass the gap, rather than adjusting the underlying geometry to actually close it. The shape passes a topology check only because tolerance discs now overlap, hiding the real defect. The user-visible symptom is a "fixed" model whose vertex tolerance balls have ballooned to swallow gaps that were never repaired.
Reproducer recipe
Wire with consecutive edges whose 3D endpoints differ by 0.001 mm on a model with declared 1e-6 uncertainty. Run a wireframe gap-fix pass.
Expected kernel behavior
a gap-fix pass should adjust edge curve endpoints (or insert a bridge edge) so the geometric gap closes; only inflate tolerance when geometry cannot be modified safely; warn when tolerance is inflated.
Notes
**See also**: N040. Synonyms: "healer inflates tolerance instead of closing gap", "tolerance balls grow to swallow gap", "fix passes only because tolerance ballooned", "gap hidden behind fattened tolerance", "wire still has gap but model passes check".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'UNCERTAINTY_MEASURE_WITH_UNIT') == 2contains(b'1.0E-6') and contains(b'2.0E-3')count_entity_def(b'EDGE_CURVE') == 2
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/* N002: gap-fix inflates declared tolerance to 2.0E-3 to cover 1.0E-3 gap; model uncertainty 1.0E-6; two EDGE_CURVEs with 1.0E-3 mm gap at junction; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N002'),'2;1'); 5FILE_NAME('N002.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('pa0',(0.0,0.0,0.0)); 10#2=CARTESIAN_POINT('pa1',(10.0,0.0,0.0)); 11#3=VERTEX_POINT('va0',#1); 12#4=VERTEX_POINT('va1',#2); 13#5=DIRECTION('',(1.0,0.0,0.0)); 14#6=VECTOR('',#5,10.0); 15#7=LINE('',#1,#6); 16#8=EDGE_CURVE('eA',#3,#4,#7,.T.); 17#9=CARTESIAN_POINT('pb0_gap_1e-3',(10.001,0.0,0.0)); 18#10=CARTESIAN_POINT('pb1',(20.001,0.0,0.0)); 19#11=VERTEX_POINT('vb0_gap',#9); 20#12=VERTEX_POINT('vb1',#10); 21#13=DIRECTION('',(1.0,0.0,0.0)); 22#14=VECTOR('',#13,10.0); 23#15=LINE('',#9,#14); 24#16=EDGE_CURVE('eB',#11,#12,#15,.T.); 25#17=GEOMETRIC_CURVE_SET('wire',(#8,#16)); 26#18=APPLICATION_CONTEXT('automotive_design'); 27#19=PRODUCT_CONTEXT('',#18,'mechanical'); 28#20=PRODUCT('N002','N002','',(#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-6),#25,'distance_accuracy_value','original_model_uncertainty'); 37#29=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(2.0E-3),#25,'distance_accuracy_value','gap_fix_inflated_tolerance'); 38#30=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#28,#29))GLOBAL_UNIT_ASSIGNED_CONTEXT((#25,#26,#27))REPRESENTATION_CONTEXT('ctx','3D')); 39#31=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#17),#30); 40#32=SHAPE_DEFINITION_REPRESENTATION(#24,#31); 41ENDSEC; 42END-ISO-10303-21;