Skip to main content

minkowski_diff

Function minkowski_diff 

Source
pub fn minkowski_diff(
    pattern: &Path64,
    path: &Path64,
    is_closed: bool,
) -> Paths64
Expand description

Compute the Minkowski Difference of a pattern and path using integer coordinates.

Direct port from C++ MinkowskiDiff (Path64 overload, clipper.minkowski.h lines 100-103).

The Minkowski Difference is similar to the Minkowski Sum but subtracts pattern points from path points instead of adding them.

§Arguments

  • pattern - The pattern path
  • path - The path from which to subtract
  • is_closed - Whether the path should be treated as closed

§Returns

The Minkowski difference as a set of paths (unioned into a clean result)