Learn R Programming

DGVM3D (version 1.0.0)

getCone: calculate a cone

Description

calculate a cone

Usage

getCone(radius = 0.5, height = 1, faces = 72, close = FALSE)

Arguments

radius

the outer radius of the cone

height

the height of the cone

faces

number of triangular sides

close

logical should the bottom side be closed.

Value

a TriangBody-class

Examples

Run this code
# NOT RUN {
if (require(rgl)) {
  cone=getCone(faces=13, close=TRUE)
  triangles3d(cone@vertices[cone@id, ], col="green")
} else {
  message("the library 'rgl' is required for this example!")
}
# }

Run the code above in your browser using DataLab