A simple algorithm for Boolean operations on polygons
A generic solution to polygon clipping