Skip to main content

one_sided_body_boundary_hausdorff

Function one_sided_body_boundary_hausdorff 

Source
pub fn one_sided_body_boundary_hausdorff<'a, 'b>(
    from: impl Into<PlacedBody<'a>>,
    to: impl Into<PlacedBody<'b>>,
    accuracy: Scalar,
    tolerance: Tolerance,
) -> Result<BodyHausdorffBounds, BodyMeasureError>
Expand description

One-sided Hausdorff distance from the boundary of the union of from’s items to that of to’s, to within accuracy (#229).

§Errors

BodyMeasureError::EmptyBody for an empty slice; BodyMeasureError::ItemsOverlap or BodyMeasureError::ItemsShareFace for two items of one body not shown apart or touching without a shared patch (see the module docs); and BodyMeasureError::Measure with what crate::one_sided_boundary_hausdorff refuses.