Home | ClipperLib |

# ClipType

Del.» type TClipType = (ctIntersection, ctUnion, ctDifference, ctXor);

C++ » enum ClipType { ctIntersection, ctUnion, ctDifference, ctXor };

C# » public enum ClipType { ctIntersection, ctUnion, ctDifference, ctXor };

There are four boolean operations - AND, OR, NOT & XOR.
Given that subject and clip polygon brush 'filling' is defined both by their vertices and their respective filling rules, the four boolean operations can be applied to polygons to define new filling regions:

- AND (intersection) - create regions where both subject and clip polygons are filled
- OR (union) - create regions where either subject or clip polygons (or both) are filled
- NOT (difference) - create regions where subject polygons are filled except where clip polygons are filled
- XOR (exclusive or) - create regions where either subject or clip polygons are filled but not where both are filled

All polygon clipping is performed with a Clipper object with the specific boolean operation indicated by the ClipType parameter passed in its Execute method.

## See Also

Overview, Clipper, Clipper.Execute, PolyFillType

Copyright ©2010-2013 Angus Johnson - Clipper version 5.1.5 - Help file built on 6-May-2013