Function mesh_distance

Source
pub fn mesh_distance<A, B>(
    first: &A,
    second: &B,
) -> Result<MeshDistance, MeshProximityError>
Expand description

Distance between two meshes, with the witness pair realising it.

Exhaustive over triangle pairs: correct by construction, and the reference the broad-phase-accelerated path is checked against.

Ties break on the lowest (triangle_a, triangle_b) pair, so the witness is reproducible rather than dependent on iteration order.