public class Clipper : ClipperBase
Constructors
Declaration
public Clipper(int InitOptions = 0)
Parameters
| Type |
Name |
Description |
| Int32 |
InitOptions |
|
Fields
Declaration
public const int ioPreserveCollinear = null
Field Value
Declaration
public const int ioReverseSolution = null
Field Value
Declaration
public const int ioStrictlySimple = null
Field Value
Properties
Declaration
public bool ReverseSolution { get; set; }
Property Value
Declaration
public bool StrictlySimple { get; set; }
Property Value
Methods
Declaration
public static double Area(List<IntPoint> poly)
Parameters
| Type |
Name |
Description |
| List<IntPoint> |
poly |
|
Returns
Declaration
public static List<IntPoint> CleanPolygon(List<IntPoint> path, double distance = 1.415)
Parameters
Returns
Declaration
public static List<List<IntPoint>> CleanPolygons(List<List<IntPoint>> polys, double distance = 1.415)
Parameters
Returns
Declaration
public static List<List<IntPoint>> ClosedPathsFromPolyTree(PolyTree polytree)
Parameters
Returns
Declaration
public bool Execute(ClipType clipType, PolyTree polytree, PolyFillType FillType = PolyFillType.pftEvenOdd)
Parameters
Returns
Declaration
public bool Execute(ClipType clipType, PolyTree polytree, PolyFillType subjFillType, PolyFillType clipFillType)
Parameters
Returns
Declaration
public bool Execute(ClipType clipType, List<List<IntPoint>> solution, PolyFillType FillType = PolyFillType.pftEvenOdd)
Parameters
Returns
Declaration
public bool Execute(ClipType clipType, List<List<IntPoint>> solution, PolyFillType subjFillType, PolyFillType clipFillType)
Parameters
Returns
Declaration
public static List<List<IntPoint>> MinkowskiDiff(List<IntPoint> poly1, List<IntPoint> poly2)
Parameters
Returns
Declaration
public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<IntPoint> path, bool pathIsClosed)
Parameters
Returns
Declaration
public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<List<IntPoint>> paths, bool pathIsClosed)
Parameters
Returns
Declaration
public static List<List<IntPoint>> OpenPathsFromPolyTree(PolyTree polytree)
Parameters
Returns
Declaration
public static bool Orientation(List<IntPoint> poly)
Parameters
| Type |
Name |
Description |
| List<IntPoint> |
poly |
|
Returns
Declaration
public static int PointInPolygon(IntPoint pt, List<IntPoint> path)
Parameters
Returns
Declaration
public static List<List<IntPoint>> PolyTreeToPaths(PolyTree polytree)
Parameters
Returns
Declaration
public static void ReversePaths(List<List<IntPoint>> polys)
Parameters
| Type |
Name |
Description |
| List<List<IntPoint>> |
polys |
|
Declaration
public static List<List<IntPoint>> SimplifyPolygon(List<IntPoint> poly, PolyFillType fillType = PolyFillType.pftEvenOdd)
Parameters
Returns
Declaration
public static List<List<IntPoint>> SimplifyPolygons(List<List<IntPoint>> polys, PolyFillType fillType = PolyFillType.pftEvenOdd)
Parameters
Returns