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.

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/tom/fog.py Lines: 66
OpenGL-Demo PyOpenGL-Demo/redbook/scene.py Lines: 89
OpenGL-Demo PyOpenGL-Demo/redbook/movelight.py Lines: 107