glutSolidTorus

render a solid or wireframe torus (doughnut) respectively.

Signature

glutSolidTorus( GLdouble( innerRadius ) , GLdouble( outerRadius ) , GLint( nsides ) , GLint( rings ) )-> void
glutSolidTorus( innerRadius , outerRadius , sides , rings )
glutSolidTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None
glutWireTorus( GLdouble( innerRadius ) , GLdouble( outerRadius ) , GLint( nsides ) , GLint( rings ) )-> void
glutWireTorus( innerRadius , outerRadius , sides , rings )
glutWireTorus( GLdouble(innerRadius), GLdouble(outerRadius), GLint(sides), GLint(rings) ) -> None

Parameters

VariablesDescription
innerRadius
Inner radius of the torus.
outerRadius
Outer radius of the torus.
nsides
Number of sides for each radial section.
rings
Number of radial divisions for the torus.

Description

glutSolidTorus and glutWireTorus render a solid or wireframe torus (doughnut) respectively centered at the modeling coordinates origin whose axis is aligned with the Z axis.

See Also

glutSolidSphere glutSolidCube glutSolidCone glutSolidDodecahedron glutSolidOctahedron glutSolidTetrahedron glutSolidIcosahedron glutSolidTeapot

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glutSolidTorus
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 91
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/tom/fog.py Lines: 62