comp • gb.clipper • clipper

Clipper (gb.clipper)

This static class implements the clipping methods.

This class is static.

Static methods

Constants
Removes vertices:
Clean  
Compute the difference between Polygons and Clip and return it.
Difference  
Compute the exclusive or between Polygons and Clip and return it.
ExclusiveOr  
Compute the intersection between Polygons and Clip and return it.
Intersection  
This function offsets the Polygons parameter by the Delta amount. Positive delta values expand outer polygons and contract inner 'hole' polygons. Negative deltas do the reverse.
Offset  
Removes self-intersections from the supplied Polygons (by performing a boolean union operation using the nominated Fill type).
Simplify  
Compute the union between Polygons and Clip and return it.
Union  
Constant that represents the "Even-odd" polygon fill rule.
FillEvenOdd  
Constant that represents the "Negative" polygon fill rule.
FillNegative  
Constant that represents the "Non-Zero" or "Winding" polygon fill rule.
FillNonZero  
Constant that represents the "Positive" polygon fill rule.
FillPositive  
Constant that represents the "Non-Zero" or "Winding" polygon fill rule.
FillWinding  
This constant represents a "miter" join type.
JoinMiter  
This constant represents a "round" join type.
JoinRound  
This constant represents a "square" join type.
JoinSquare  

Polygon fill types

Each polygon or array of polygons must have a fill type specified when calling one of the clipping methods: Difference, Union, Intersection, ExclusiveOr.

That fill type is a value among one of the following constant:

See this link for more details: Polygon fill types on the Clipper Library web site.