drawSphere

Renders a sphere centered at the modeling coordinates origin of the specified @radius. The sphere is subdivided around the Z axis into slices and along the Z axis into stacks.

void
drawSphere
(
bool solid
,
double radius
,
int slices
,
int stacks
)

Parameters

solid bool

true if the sphere should be solid.

radius double

the radius of the sphere.

slices int

the number of subdivisions around the Z axis (similar to lines of longitude).

stacks int

the number of subdivisions along the Z axis (similar to lines of latitude).

Meta