Query: glutsolidtorus
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutSolidTorus -- Draw a solid torus.LIBRARYOpenGLUT - geometrySYNOPSIS#include <openglut.h> void glutSolidTorus(GLdouble dInnerRadius, GLdouble dOuterRadius, GLint nSides, GLint nRings);PARAMETERSdInnerRadius Radius of ``tube'' dOuterRadius Radius of ``path'' nSides Facets around ``tube'' nRings Joints along ``path''DESCRIPTIONThis function effectively wraps a cylinder with nSides slats and bends it at nRings 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.CAVEATSdInnerRadius and dOuterRadius are not analogous to similar measurements of an anulus.SEE ALSOglutWireTorus(3) Epoch