Skip to main content

reanchor_periodic_rings

Function reanchor_periodic_rings 

Source
pub fn reanchor_periodic_rings(
    model: &mut Model,
    shape: &Shape,
    tol: Tolerances,
) -> OgeomResult<(Built, usize)>
Expand description

Re-anchor misaligned ring vertices so every periodic face can carry a seam.

Faces already whole pass through untouched; a shape with nothing to heal comes back as itself with an empty history. After the rings, faces still without a seam or pole edge their chart needs get one through crate::seam_periodic_faces. The count is the rings moved and the faces seamed.

§Errors

OgeomError::Construction if the shape is not a solid, or a broken face’s structure resists the repair, in which case nothing is modified.