Some of our coherence 2D graphics renderer examples used to rely on being able to robustly intersect and union polygons.
For this, we used an interface to the General Polygon Clipper, which is a fast C library for such operations. Unfortunately, it’s only free for non-commercial use. And so, to use our OCaml interface in commercial applications, you need to obtain a license from the University of Manchester.
Our interface is up at github.
The easiest way to install is through OPAM:
opam install camlgpc