Port of THREE.GeometryUtils operations with random points to commonjs