.ply files contain a lot of information. for ggseg3d, we only need information on the vertices and faces of the mesh. Thes function opens a ply file, and organises the meshes and faces into a single list.

get_mesh(ply, ...)

Arguments

ply

path to ply-file

...

arguments to read.ply

Value

list of meshes and faces

Examples

if (FALSE) {
get_mesh("path/to/surface.ply")

# Turn off showing the ply when reading
get_mesh("path/to/surface.ply", ShowSpecimen = FALSE)
}