BasicTriangulator: extract of core triangulation from Three.js, initial commit