Skip to main content

one_sided_boundary_hausdorff

Function one_sided_boundary_hausdorff 

Source
pub fn one_sided_boundary_hausdorff(
    from: &ExactBRep,
    to: &ExactBRep,
    accuracy: Scalar,
    tolerance: Tolerance,
) -> Result<HausdorffBounds, ExactMeasureError>
Expand description

One-sided Hausdorff distance h(from, to) between two exact boundaries, to within accuracy (#224).

Refines until upper - lower <= accuracy or the budget runs out; the interval is sound either way. A negative or NaN accuracy is read as zero, as by crate::boundary_distance: refine as far as the budget allows.

ยงErrors

As crate::boundary_distance: a face whose domain cannot be bounded, an evaluation failure, or a boundary with no boundable element; and ExactMeasureError::NonPlanarFace (not converged) when no point of from could be certified on its boundary.