Constructive Solid Geometry (CSG) implementation for Skyline. Initially ported from http://evanw.github.io/csg.js/