Learn R Programming

DGVM3D (version 1.0.0)

getEllipsoid: Calculate an ellipsoid

Description

Calculate an ellipsoid

Usage

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

Run this code
# NOT RUN {
if (require(rgl)) {
  ellipsoid=getEllipsoid(height=2)
  triangles3d(ellipsoid@vertices[ellipsoid@id, ], col="green")
} else {
  message("the library 'rgl' is required for this example!")
}
# }

Run the code above in your browser using DataLab