read.ply2: Read mesh data (vertices and faces) from .ply files

Description Usage Arguments Details Value See Also Examples

View source: R/3d.R

Description

Read .ply files to be used for digitizing landmark coordinates.

Usage

1
read.ply2(file, ShowSpecimen = FALSE)

Arguments

file

character, a path to an ASCII .ply file

ShowSpecimen

logical,should the ply file should be displayed

Details

Function reads three-dimensional surface data in the form of a single .ply file (Polygon File Format; ASCII format only, from 3D scanners or from .ply rendered from STL files produced by surface renderings of computed tomography data. The function opens the ply file and plots the mesh in a local shiny app if ShowSpecimen=TRUE.

Value

A list with the following components:

#'

See Also

geomorph::read.ply

Examples

1
2
3
4
5
6
#load a .ply file, taken from https://people.sc.fsu.edu/~jburkardt/data/ply/ply.html

ply.f<- system.file("extdata","hammerhead.ply",package = "geomorphcompanion")


spec <- read.ply2(file=ply.f,ShowSpecimen = FALSE)

ckenaley/geomorphcompanion documentation built on Dec. 19, 2021, 5:13 p.m.