drawCone

Renders a cone oriented along the Z axis. The base of the cone is placed at Z = 0, and the top at Z = height. The cone is subdivided around the Z axis into slices, and along the Z axis into stacks.

void
drawCone
(
bool solid
,
double base
,
double height
,
int slices
,
int stacks
)

Parameters

solid bool

true if the cone should be solid.

base double

the radius of the base of the cone.

height double

the height of the cone.

slices int

the number of subdivisions around the Z axis.

stacks int

the number of subdivisions along the Z axis.

Meta