getCone: calculate a cone

Description Usage Arguments Value Examples

Description

calculate a cone

Usage

1
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

1
2
3
4
5
6
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!")
}

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