Class Clipper
Inheritance
System.Object
Clipper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Oasys.Common.dll
Syntax
public class Clipper : ClipperBase
Constructors
Clipper(Int32)
Declaration
public Clipper(int InitOptions = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
InitOptions |
|
Fields
ioPreserveCollinear
Declaration
public const int ioPreserveCollinear = 4
Field Value
Type |
Description |
System.Int32 |
|
ioReverseSolution
Declaration
public const int ioReverseSolution = 1
Field Value
Type |
Description |
System.Int32 |
|
ioStrictlySimple
Declaration
public const int ioStrictlySimple = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
ReverseSolution
Declaration
public bool ReverseSolution { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
StrictlySimple
Declaration
public bool StrictlySimple { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Area(List<IntPoint>)
Declaration
public static double Area(List<IntPoint> poly)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
poly |
|
Returns
Type |
Description |
System.Double |
|
CleanPolygon(List<IntPoint>, Double)
Declaration
public static List<IntPoint> CleanPolygon(List<IntPoint> path, double distance = 1.415)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
path |
|
System.Double |
distance |
|
Returns
Type |
Description |
System.Collections.Generic.List<IntPoint> |
|
CleanPolygons(List<List<IntPoint>>, Double)
Declaration
public static List<List<IntPoint>> CleanPolygons(List<List<IntPoint>> polys, double distance = 1.415)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
polys |
|
System.Double |
distance |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
ClosedPathsFromPolyTree(PolyTree)
Declaration
public static List<List<IntPoint>> ClosedPathsFromPolyTree(PolyTree polytree)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
Execute(ClipType, PolyTree)
Declaration
public bool Execute(ClipType clipType, PolyTree polytree)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Execute(ClipType, PolyTree, PolyFillType, PolyFillType)
Declaration
public bool Execute(ClipType clipType, PolyTree polytree, PolyFillType subjFillType, PolyFillType clipFillType)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Execute(ClipType, List<List<IntPoint>>)
Declaration
public bool Execute(ClipType clipType, List<List<IntPoint>> solution)
Parameters
Type |
Name |
Description |
ClipType |
clipType |
|
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
solution |
|
Returns
Type |
Description |
System.Boolean |
|
Execute(ClipType, List<List<IntPoint>>, PolyFillType, PolyFillType)
Declaration
public bool Execute(ClipType clipType, List<List<IntPoint>> solution, PolyFillType subjFillType, PolyFillType clipFillType)
Parameters
Returns
Type |
Description |
System.Boolean |
|
MinkowskiDiff(List<IntPoint>, List<IntPoint>)
Declaration
public static List<List<IntPoint>> MinkowskiDiff(List<IntPoint> poly1, List<IntPoint> poly2)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
poly1 |
|
System.Collections.Generic.List<IntPoint> |
poly2 |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
MinkowskiSum(List<IntPoint>, List<IntPoint>, Boolean)
Declaration
public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<IntPoint> path, bool pathIsClosed)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
pattern |
|
System.Collections.Generic.List<IntPoint> |
path |
|
System.Boolean |
pathIsClosed |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
MinkowskiSum(List<IntPoint>, List<List<IntPoint>>, Boolean)
Declaration
public static List<List<IntPoint>> MinkowskiSum(List<IntPoint> pattern, List<List<IntPoint>> paths, bool pathIsClosed)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
pattern |
|
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
paths |
|
System.Boolean |
pathIsClosed |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
OpenPathsFromPolyTree(PolyTree)
Declaration
public static List<List<IntPoint>> OpenPathsFromPolyTree(PolyTree polytree)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
Orientation(List<IntPoint>)
Declaration
public static bool Orientation(List<IntPoint> poly)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<IntPoint> |
poly |
|
Returns
Type |
Description |
System.Boolean |
|
PointInPolygon(IntPoint, List<IntPoint>)
Declaration
public static int PointInPolygon(IntPoint pt, List<IntPoint> path)
Parameters
Type |
Name |
Description |
IntPoint |
pt |
|
System.Collections.Generic.List<IntPoint> |
path |
|
Returns
Type |
Description |
System.Int32 |
|
PolyTreeToPaths(PolyTree)
Declaration
public static List<List<IntPoint>> PolyTreeToPaths(PolyTree polytree)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
Reset()
Declaration
protected override void Reset()
Overrides
ReversePaths(List<List<IntPoint>>)
Declaration
public static void ReversePaths(List<List<IntPoint>> polys)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
polys |
|
SimplifyPolygon(List<IntPoint>, PolyFillType)
Declaration
public static List<List<IntPoint>> SimplifyPolygon(List<IntPoint> poly, PolyFillType fillType = PolyFillType.pftEvenOdd)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
SimplifyPolygons(List<List<IntPoint>>, PolyFillType)
Declaration
public static List<List<IntPoint>> SimplifyPolygons(List<List<IntPoint>> polys, PolyFillType fillType = PolyFillType.pftEvenOdd)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
polys |
|
PolyFillType |
fillType |
|
Returns
Type |
Description |
System.Collections.Generic.List<System.Collections.Generic.List<IntPoint>> |
|
Extension Methods