pub fn oriented_bounds(
model: &Model,
shape: &Shape,
deflection: Deflection,
tol: Tolerances,
) -> OgeomResult<Obb>Expand description
An oriented bound for a shape, from the spread of its geometry.
The axes come from the covariance of sampled points (the directions the shape is most and least spread along), and the extents are then measured along those axes, so the box is tight even though the fit is not exact.
Not a guarantee, unlike shape_bounds. It is built from samples, so a
curved face can bulge a little past it. Widen it before using it to reject
anything.
ยงErrors
OgeomError::Dangling if a handle fails to
resolve; OgeomError::Construction if the
shape has no geometry to bound.