Description Usage Arguments Value Examples
Calculate a 3D hexagon
1 | getHexagon(area = NA, outer.radius = NA, inner.radius = NA, z = c(0, 1))
|
area |
the area of the hexagon |
outer.radius |
the outer radius of the hexagon |
inner.radius |
the inner radius of the hexagon |
z |
the height of the hexagon as 2 element vector |
a TriangBody-class
1 2 3 4 5 6 | if (require(rgl)) {
hexagon <- getHexagon(area=dgvm3d.options("patch.area"), z=c(0, -2))
triangles3d(hexagon@vertices[hexagon@id, ], col="brown")
} else {
message("the library 'rgl' is required for this example!")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.