gridlabs3d: Display the names of the grid elements in 3d plots.

gridlabs3dR Documentation

Display the names of the grid elements in 3d plots.

Description

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

Usage

gridlabs3d(gridObj, ...)

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

## S4 method for signature '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)

adamkocsis/icosa documentation built on Aug. 20, 2024, 1:35 a.m.