Skip to main content

tight_bounds

Function tight_bounds 

Source
pub fn tight_bounds(
    model: &Model,
    shape: &Shape,
    tol: Tolerances,
) -> OgeomResult<Aabb>
Expand description

The smallest axis-aligned box holding shape, to within tol: each of its six sides where the shape actually reaches, on an edge, at a vertex or inside a face.

ยงErrors

OgeomError::Dangling if a handle does not resolve; OgeomError::Construction if the shape holds nothing to bound, or as the face meshes report.