Ported LordHavoc's polylib clipping routines to THREE.