step-examples/12-4-tolerance/N024.stp
Sources
- 13-quaoar B025 (Analysis Situs `rebuild-edge`)
Description
After local edits (face translation, blend suppression, partial defeaturing), an edge's stored 3D curve no longer matches the geometric intersection of its two host faces. Typical signature: two `PLANE` instances exist — the original at z=0 and the edited one at z=0.01 — but an `EDGE_CURVE` between them still references a 3D `LINE` at z=0, the pre-edit plane. The edge survives as topology but its curve is stale, leading to large tolerances or visible cracks.
Reproducer recipe
Translate one host face of an edge by a small offset without rebuilding the edge; compare `BRepAdaptor_Curve(edge)` to `IntPatch_Intersection(s1, s2)` — they diverge.
Expected kernel behavior
heal; `rebuild-edge` re-intersects host faces and rebuilds vertices; vertex-freezing flag handles near-tangential cases.
Notes
**See also**: Gs030. Synonyms: "edge curve stale after face moved", "LINE is at old position after face translate", "edit moved face but edge geometry didn't follow", "two planes exist but edge still on old one", "edge curve doesn't match host face intersection".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'PLANE') == 2count_entity_def(b'EDGE_CURVE') == 1contains(b'1.0E-5')
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/* N024: EDGE_CURVE 3D LINE at z=0 (pre-edit); one PLANE at z=0, one translated to z=0.01; edge curve stale â doesn't match the new plane intersection; GEOMETRIC_CURVE_SET â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('N024'),'2;1'); 5FILE_NAME('N024.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('plane1_orig',(0.0,0.0,0.0)); 10#2=DIRECTION('',(0.0,0.0,1.0)); 11#3=DIRECTION('',(1.0,0.0,0.0)); 12#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 13#5=PLANE('plane_original_z0',#4); 14#6=CARTESIAN_POINT('plane2_orig_z_0.01',(0.0,0.0,0.01)); 15#7=DIRECTION('',(0.0,0.0,1.0)); 16#8=DIRECTION('',(1.0,0.0,0.0)); 17#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 18#10=PLANE('plane_translated_z_0.01',#9); 19#11=CARTESIAN_POINT('stale_line_start',(0.0,0.0,0.0)); 20#12=CARTESIAN_POINT('stale_line_end',(10.0,0.0,0.0)); 21#13=VERTEX_POINT('v_start',#11); 22#14=VERTEX_POINT('v_end',#12); 23#15=DIRECTION('',(1.0,0.0,0.0)); 24#16=VECTOR('',#15,10.0); 25#17=LINE('stale_line_at_z0',#11,#16); 26#18=EDGE_CURVE('stale_edge',#13,#14,#17,.T.); 27#19=GEOMETRIC_CURVE_SET('planes_edge',(#5,#10,#18)); 28#20=APPLICATION_CONTEXT('automotive_design'); 29#21=PRODUCT_CONTEXT('',#20,'mechanical'); 30#22=PRODUCT('N024','N024','',(#21)); 31#23=PRODUCT_DEFINITION_FORMATION('','',#22); 32#24=PRODUCT_DEFINITION_CONTEXT('part definition',#20,'design'); 33#25=PRODUCT_DEFINITION('','',#23,#24); 34#26=PRODUCT_DEFINITION_SHAPE('','',#25); 35#27=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#28=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#29=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#30=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-5),#27,'distance_accuracy_value','rebuild_edge_threshold'); 39#31=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#30))GLOBAL_UNIT_ASSIGNED_CONTEXT((#27,#28,#29))REPRESENTATION_CONTEXT('ctx','3D')); 40#32=GEOMETRICALLY_BOUNDED_WIREFRAME_SHAPE_REPRESENTATION('',(#19),#31); 41#33=SHAPE_DEFINITION_REPRESENTATION(#26,#32); 42ENDSEC; 43END-ISO-10303-21;