Skip to main content

reanchor_boundaries

Function reanchor_boundaries 

Source
pub fn reanchor_boundaries(
    model: &mut Model,
    shape: &Shape,
    cap: f64,
    tol: Tolerances,
) -> OgeomResult<(Built, ReanchoredBoundaries)>
Expand description

Move boundary curves onto the surfaces they are supposed to bound.

The stronger fix behind fix_face_pcurves: where that fits a chart through whatever offset the boundary carries, this moves the boundary itself: each off-surface edge’s curve is projected, refitted at its own parameters (so every chart already speaking the old curve keeps its same-parameter law), and replaced throughout the shape. The displacement is not hidden: the edge’s and its vertices’ tolerances widen to cover where the boundary was, because the neighbouring faces still stand on the unmoved geometry and honesty about the gap is what keeps them sewn.

An edge shared by several faces moves once, onto the first face that claims it in face order; the recorded tolerance covers the rest.

§Errors

OgeomError::Construction if the shape’s structure resists rebuilding; refusals past the cap are reported, not thrown.