parry3d::transformation

Function intersect_meshes

source
pub fn intersect_meshes(
    pos1: &Isometry<f32>,
    mesh1: &TriMesh,
    flip1: bool,
    pos2: &Isometry<f32>,
    mesh2: &TriMesh,
    flip2: bool,
) -> Result<Option<TriMesh>, MeshIntersectionError>
Expand description

Computes the intersection of two meshes.

The meshes must be oriented, have their half-edge topology computed, and must not be self-intersecting. The result mesh vertex coordinates are given in the local-space of mesh1.