gfxpoly is a library for doing geometric polygon operations, like intersection, union, hidden surface removal, stroke to outline conversion, wind rule conversion, etc. It's very stable, and has been used to convert hundreds of millions of polygons in production environments.