getEllipsoid: Calculate an ellipsoid

Description Usage Arguments Value Examples

Description

Calculate an ellipsoid

Usage

1
getEllipsoid(radius = 0.5, height = 1, faces = c(6, 3))

Arguments

radius

x/y radius

height

z height

faces

approx. number of faces. If two values given: 1.) around z-axis; 2.) along z-axis.

Value

a TriangBody-class

Examples

1
2
3
4
5
6
if (require(rgl)) {
  ellipsoid=getEllipsoid(height=2)
  triangles3d(ellipsoid@vertices[ellipsoid@id, ], col="green")
} else {
  message("the library 'rgl' is required for this example!")
}

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