Skip to main content

proximity_components

Function proximity_components 

Source
pub fn proximity_components<A, B>(
    first: &A,
    second: &B,
    threshold: f64,
) -> Result<Vec<ProximityComponent>, MeshProximityError>
Expand description

Disjoint regions where two meshes approach within threshold.

Two close pairs belong to the same component when they share a triangle on either mesh; connectivity is transitive through that relation. This groups one physical approach into one component instead of reporting every triangle pair separately.

Components are ordered by closest approach, nearest first, with ties broken on the witness triangle indices so the order is reproducible.