library to perform boolean operations on polygons
The Clipper2 library performs intersection, union, difference and XOR boolean operations on both simple and complex polygons. It also performs polygon offsetting.
Homepage: https://www.angusj.com/clipper2