Skip to main content

shape_bounds

Function shape_bounds 

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

A guaranteed bound for a shape, including everything below it.

Vertices contribute their point widened by their own tolerance, since a vertex genuinely occupies that much space. Edges and faces contribute the bound of their geometry, likewise widened.

§Errors

OgeomError::Dangling if any handle fails to resolve, and whatever the geometry’s own bound reports.