Function self_intersections

Source
pub fn self_intersections<M>(mesh: &M) -> Vec<IntersectingPair>
where M: TriangleMeshView + ?Sized,
Expand description

Self-intersecting triangle pairs, found through the spatial index.

Returns pairs in sorted order. An empty result means no pair intersects.

There is no tolerance parameter: the narrow phase decides with certified orient3d, and the broad phase uses exact triangle bounds. A tolerance here would only be able to make the answer wrong, by admitting or rejecting pairs the exact test already decides.