Script to generate a mesh from a point cloud