Overview of ClipperLib capabilities
masterClipperLib is a Javascript library used for the clipping and offsetting of lines and polygons. It is designed to be numerically robust and fast, supporting various polygon filling rules.
Key Terminology
- Clipping: The process of performing boolean operations (Intersection, Union, Difference, or Exclusive-OR) between geometric shapes. While often used to refer to a rectangular window, in Clipper it refers to any boolean operation between subject and clipping paths.
- Path: An ordered sequence of vertices defining a geometric contour. It can be an open path (a line/polyline) or a closed path (a polygon).
- Polygon: A closed path that may contain zero or more holes.
- Hole: A closed region within a polygon that is not part of the polygon itself.
- Filling Rule: A rule (e.g., EvenOdd, NonZero) that defines which regions bounded by paths are considered 'inside' (filled) versus 'outside'.