1UNTITLED LOCAL UNTITLED
2
4 glutSolidTorus — Draw a solid torus.
5
7 OpenGLUT - geometry
8
10 #include <openglut.h>
11
12 void
13 glutSolidTorus(GLdouble dInnerRadius, GLdouble dOuterRadius,
14 GLint nSides, GLint nRings);
15
17 dInnerRadius Radius of ``tube''
18
19 dOuterRadius Radius of ``path''
20
21 nSides Facets around ``tube''
22
23 nRings Joints along ``path''
24
26 This function effectively wraps a cylinder with nSides slats and bends
27 it at nRings facets around a circular path, forming a torus, or
28 ``donut''. The center is at the origin and the ``path'' rings around the
29 z axis.
30
31 The torus parameters can be explored interactively with the OpenGLUT
32 shapes demo.
33
35 dInnerRadius and dOuterRadius are not analogous to similar mea‐
36 surements of an anulus.
37
39 glutWireTorus(3)
40
41
42
43
44 Epoch