id_to_coord: Convert Linearized Coordinates Into x/y/z

Description Usage Arguments Value Examples

View source: R/utils.R

Description

rtini_extract() produces "linearized" coordinates that are useful for directly indexing back into the elevation map, but can be clumsy for plotting. "Linearized" coordinates are offsets that can be used to access a matrix or array as if it were a dimensionless vector. This function converts those coordinates to x/y/z values.

Usage

1
id_to_coord(mesh, map, normalize = FALSE)

Arguments

mesh

list of numeric matrices as produced by rtini_extract().

map

numeric matrix elevation map used to produce the mesh.

normalize

FALSE unimplemented

Value

list with three components, one for each dimension. Each component is a three row matrix in which each column represents one triangle.

Examples

1
2
3
err <- rtini_error(volcano)
mesh <- rtini_extract(err, 10)
coord <- id_to_coord(mesh, volcano)

brodieG/rtini documentation built on Jan. 22, 2020, 2:03 a.m.