GLUTSOLIDTORUS

Section: C Library Functions (3)
Updated: LOCAL
Index Return to Main Contents

BSD mandoc
 

NAME

glutSolidTorus - Draw a solid torus.  

LIBRARY

OpenGLUT - geometry  

SYNOPSIS

In openglut.h Ft void Fn glutSolidTorus GLdouble dInnerRadius GLdouble dOuterRadius GLint nSides GLint nRings  

PARAMETERS

Bf Em
 dInnerRadius Ef
    Radius of ``tube''

Bf Em
 dOuterRadius Ef
    Radius of ``path''

Bf Em
 nSides Ef
          Facets around ``tube''

Bf Em
 nRings Ef
          Joints along ``path''  

DESCRIPTION

This function effectively wraps a cylinder with Bf Sy
 nSides Ef
 slats and bends it at Bf Sy
 nRings Ef
 facets around a circular path, forming a torus, or ``donut''. The center is at the origin and the ``path'' rings around the z axis.

The torus parameters can be explored interactively with the OpenGLUT shapes demo.

 

CAVEATS

Bf Sy
 dInnerRadius Ef
 and  Bf Sy
 dOuterRadius Ef
 are  Bf Em
 not Ef
  analogous to similar measurements of an anulus.

 

SEE ALSO

glutWireTorus(3)