read_vertices: Read vertices from PLY or OBJ files

Description Usage Arguments Value Examples

View source: R/read_vertices.R

Description

\lifecycle

experimental

Uses file2mesh to read PLY files or readOBJ to read OBJ files, and saves vertex data into three-dimensional array

Usage

1
read_vertices(meshdata)

Arguments

meshdata

Path to single PLY/OBJ or directory containing PLY/OBJ files. If both files types are present, PLYs will be prioritised

Value

Returns array of dimensions p, k, and n. p = number of landmarks, k = dimension of data, n = number of specimens

Examples

1
2
3
4
5
path_to_ply <- system.file("extdata", "ply", package="facefuns")
data <- read_vertices(meshdata = path_to_ply)

path_to_obj <- system.file("extdata", "obj", package="facefuns")
data <- read_vertices(meshdata = path_to_obj)

iholzleitner/facefuns documentation built on March 19, 2021, 2:43 p.m.