Skip to main content

check_self_intersection

Function check_self_intersection 

Source
pub fn check_self_intersection(
    model: &Model,
    shape: &Shape,
    tol: Tolerances,
) -> OgeomResult<Vec<(Shape, Shape)>>
Expand description

Faces of one shape that reach each other without sharing topology: self-intersection, detected as the interference it is.

Every unordered pair of distinct faces that share no edge and no vertex node, and that hulls holding their geometry do not prove apart, is put through the exact minimum-distance machinery; a pair within the confusion tolerance of touching is reported. Adjacent faces meet at their shared boundary by construction and are not interference; a valid solid therefore reports nothing, and a sheet folded through itself names the faces that cross.

ยงErrors

As crate::distance_between_shapes.