Skip to contents

This function will display the names of vertices, faces and edges on 3d plots.

Usage

gridlabs3d(gridObj, ...)

# S4 method for trigrid
gridlabs3d(gridObj, type = "f", ...)

# S4 method for hexagrid
gridlabs3d(gridObj, type = "f", ...)

Arguments

gridObj

(trigrid, hexagrid) An icosahedral grid.

...

Additional arguments passed to text3d function of the rgl package.

type

(character) Vector containing either "f", "e" or "v", rendering the names of either the faces, edges or vertives respectively.

Value

The function does not return any value.

Examples

# create a hexagonal grid
g <- hexagrid(c(2,2))
# plot the grid in 3d space
# lines3d(g, guides=FALSE)
# labels
# gridlabs3d(g)