get_mesh: Extract mesh data from ply

Description Usage Arguments Value Examples

View source: R/utils.R

Description

.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.

Usage

1
get_mesh(ply, ...)

Arguments

ply

path to ply-file

...

arguments to read.ply

Value

list of meshes and faces

Examples

1
2
3
4
5
6
7
## Not run: 
get_mesh("path/to/surface.ply")

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

## End(Not run)

neuroconductor/ggsegExtra documentation built on Aug. 18, 2020, 4:45 p.m.