GLDraw.torus

Renders a torus (doughnut) centered at the modeling coordinates origin whose axis is aligned with the Z axis.

class GLDraw
static
void
torus
(
int solid
,,,
int nsides
,
int rings
)

Parameters

solid int

TRUE if the torus should be solid.

innerRadius double

inner radius of the torus.

outerRadius double

outer radius of the torus.

nsides int

number of sides for each radial section.

rings int

number of radial divisions for the torus.

Meta