Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gridlabs3d

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)

icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.