Function intersection_segments

Source
pub fn intersection_segments(
    subject: &TriMesh,
    tool: &TriMesh,
) -> GeomResult<IntersectionCurve>
Expand description

Compute the intersection curve between two triangle meshes.

O(n*m): every face pair is tested. This is the reference implementation, so it is written to be obviously right rather than fast – a BVH here would be a second thing to get wrong. A production provider adds one.

§Errors

Refuses coplanar face pairs, whose intersection is an area rather than a curve and needs a 2D overlap policy the caller must choose.