Write a ply format for MorphoGraphX from a mesh3D R object
mesh2ply(mesh = mesh, filename = "my_ply.ply", label_it_for_mesh = mesh$label_it)
mesh | A 3D (triangular) mesh object. |
---|---|
filename | The name we want to give to the created .ply file. |
label_it_for_mesh | Triangle color. |
a .ply file readable by MorphoGraphX