point cloud to mesh algorithm