Boolean operations on polygons are a set of Boolean operations (AND, OR, NOT, XOR, ...) operating on one or more sets of polygons in computer graphics. These sets of operations are widely used in computer graphics, CAD, and in EDA (in integrated circuit physical design and verification software).
Early algorithms for Boolean operations on polygons were based on the use of bitmaps. Using bitmaps in modeling polygon shapes has many drawbacks. One of the drawbacks is that the memory usage can be very large, since the resolution of polygons is proportional to the number of bits used to represent polygons. The higher the resolution is desired, the more the number of bits is required.
Modern implementations for Boolean operations on polygons tend to use plane sweep algorithms (or Sweep line algorithms). A list of papers using plane sweep algorithms for Boolean operations on polygons can be found in References below.
Matthias Kramm's gfxpoly, a free C library for 2D polygons (BSD license).
Klaas Holwerda's Boolean, a C++ library for 2D polygons.
David Kennison's Polypack, a FORTRAN library based on the Vatti algorithm.
Klamer Schutte's Clippoly, a polygon clipper written in C++.
Michael Leonov's poly_Boolean, a C++ library, which extends the Schutte algorithm.
Angus Johnson's Clipper, an open-source freeware library (written in Delphi, C++ and C#) that's based on the Vatti algorithm.
clipper2 crate, a safe Rust wrapper for Angus Johnson's Clipper2 library.
Nail Sharipov’s iOverlay Rust Polygon Boolean Operations library: Supports intersection, union, difference, xor, and self-intersections for all polygon varieties.
GeoLib, a commercial library available in C++ and C#.
PolygonLibArchived 2012-11-16 at the Wayback Machine, C++ and COM libraries for 2D polygons (optimized for large polygon sets, built-in spatial indices).