[Experimental]

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

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

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)