MinkowskiSum

Delphifunction MinkowskiSum(const pattern, path: TPath64; pathIsClosed: Boolean): TPaths64;

C++Paths64 MinkowskiSum(const Path64& pattern, const Path64& path, const isClosed);

C#Paths64 MinkowskiSum(const Path64& pattern, const Path64& path, const isClosed);


For an explanation of this function see Minkowski Addition at Wikipedia.

C++ Example:
  Path64 pattern = Ellipse(Point64(100,100), 30, 30);
  Path64 path = MakePath({0,0, 200,0, 200,200, 0,200, 0,0});
  Paths64 solution = MinkowskiSum(pattern, path, true);
  
  //draw solution

      

C# Example:
  Path64 pattern = Ellipse(new Point64(100,100), 30, 30);
  Path64 path = Clipper.MakePath(new int[] { 0,0, 200,0, 200,200, 0,200, 0,0 });
  Paths64 solution = Clipper.MinkowskiSum(pattern, path, true);
    
  //draw solution

      

See Also

MinkowskiDiff