Transform mesh to 3D point cloud
mesh_to_points(mesh)
mesh
A triangular mesh of class mesh3d.
A data frame with XYZ coordinates.