digit.fixed2: Digitize 3D landmarks on mesh3d object

Description Usage Arguments Details Value See Also Examples

View source: R/3d.R

Description

A shiny-based interactive function to digitize three-dimensional (3D) landmarks. Input for the function is output of vertex coordinates defining a mesh3d object as obtained from read.ply2.

Usage

1
digit.fixed2(spec = spec, out.dir = NULL)

Arguments

spec

a list, produced from read.ply2

out.dir

character, the file path describing where to save results

Details

Function for digitizing fixed three-dimensional landmarks. Produces a shiny app interactive session. Permits panning, zooming, and rotation. Results are saved as a .csv file once the user clicks on the "Save" button.

Value

A csv file with x,y,z coordinates named according to the spec.name output of read.ply2

See Also

geomorph::digitize.fixed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
#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 = F)

digit.fixed2(spec=spec,out.dir = tempdir())

#commence digitizing

f <- list.files(tempdir(),pattern=".csv",full.names=TRUE)
read_csv(f)

## End(Not run)

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