getHexagon: Calculate a 3D hexagon

Description Usage Arguments Value Examples

Description

Calculate a 3D hexagon

Usage

1
getHexagon(area = NA, outer.radius = NA, inner.radius = NA, z = c(0, 1))

Arguments

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

Value

a TriangBody-class

Examples

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!")
}

DGVM3D documentation built on May 2, 2019, 3:47 p.m.