drawTorus

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

void
drawTorus

Parameters

solid gboolean

true if the torus should be solid.

inner_radius double

inner radius of the torus.

outer_radius 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