pub fn surface_gap(a: &TriMesh, b: &TriMesh, search_length: f64) -> Option<f64>Expand description
Smallest distance between the surfaces of a and b, when it is at most
search_length.
Unlike min_gap, containment is not tested: a mesh in another’s cavity,
or wholly inside it, is as far from it as the surfaces are.
Some(0.0) when the surfaces touch or cross. None when nothing is within
search_length, or search_length is negative or not finite (zero is
allowed: only touching or crossing surfaces are found).
§Panics
Never. A malformed index buffer yields None rather than a panic.