Learn R Programming

doolkit (version 1.42.2)

rfi: relief index

Description

Compute the relief index of a 3d triangle mesh.

Usage

rfi(mesh, method = "Ungar", hull = "concave")

Value

A single relief index value.

Arguments

mesh

object of class mesh3d

method

a character string indicating which method is to be used for the computation of relief index

hull

the method used to compute the hull of the 2d projection, either 'convex' or 'concave'. The default method is 'convex'. See area2d

Details

As of version 1.42.2, the concave hull fails intermittently on Mac systems, so the function defaults to convex hulls (on other systems, it defaults to concave hulls).

References

tools:::Rd_expr_doi("10.1016/j.jhevol.2008.08.002")Boyer (2008) tools:::Rd_expr_doi("10.1371/journal.pone.0066142")Guy et al. (2013) Ungar and Williamson (2000)

See Also

area2d

RFI

Examples

Run this code
rfi <- rfi(dkmodel$cusp, method = "Ungar", hull = "convex")
lrfi <- rfi(dkmodel$cusp, method = "Boyer", hull = "convex")
gamma <- rfi(dkmodel$cusp, method = "Guy")

Run the code above in your browser using DataLab