glutWireTorus man page

glutWireTorus ā€” Draw a wireframe torus.

Library

OpenGLUT - geometry

Synopsis

#include <openglut.h>

void
glutWireTorus(GLdouble dInnerRadius, GLdouble dOuterRadius, GLint nSides, GLint nRings);

Parameters

dInnerRadius

Radius of ``tube''

dOuterRadius

Radius of ``path''

nSides

Facets around ``tube''

nRings

Joints along ``path''

Description

This 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.

Caveats

dInnerRadius

and

dOuterRadius

are

not

analogous to similar measurements of an anulus.

See Also

glutSolidTorus(3)

Referenced By

glutSolidTorus(3).

August 9, 2018