powered by
calculate a cone
getCone(radius = 0.5, height = 1, faces = 72, close = FALSE)
the outer radius of the cone
the height of the cone
number of triangular sides
logical should the bottom side be closed.
a TriangBody-class
TriangBody-class
# 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