Function minkowski_difference_with

Source
pub fn minkowski_difference_with(
    subject: &TriMesh,
    tool: &TriMesh,
    tolerance: Tolerance,
    provider: &dyn MeshBoolean,
) -> Result<MinkowskiOutcome, MinkowskiError>
Expand description

Minkowski difference: the translations of tool that stay inside subject.

Computed as the intersection of subject translated by the negated vertices of tool, which is exact when subject is convex.

ยงErrors

Refuses malformed operands, and a non-convex subject by name: the vertex-wise containment test is only sufficient for a convex subject, so any other answer would be too large.