Skip to main content

distance_between_shapes

Function distance_between_shapes 

Source
pub fn distance_between_shapes(
    model: &Model,
    a: &Shape,
    b: &Shape,
    options: ExtremaOptions,
    tol: Tolerances,
) -> OgeomResult<ShapeDistance>
Expand description

The minimum distance between two shapes’ boundaries.

§Errors

OgeomError::Construction if either shape has no vertices, edges or faces to measure to; OgeomError::Dangling if a handle fails to resolve.