GLUTWIRETORUS(3)
๐ซ NAME ๐ซ
glutWireTorus โ bestie, this draws a wireframe torus ๐ฉโจ
๐ LIBRARY ๐
OpenGLUT - geometry ๐
โจ SYNOPSIS โจ
#include <openglut.h>
void
glutWireTorus(GLdouble dInnerRadius, GLdouble dOuterRadius,
GLint nSides, GLint nRings);
๐ธ PARAMETERS ๐ธ
dInnerRadiusโ the radius of the ``tube'' ๐งต like, how chonky the donut rope itself isdOuterRadiusโ the radius of the ``path'' ๐ aka how big the circle is that the tube sweeps aroundnSidesโ how many facets go around the ``tube'' ๐ฅnRingsโ how many joints run along the ``path'' ๐
๐ฆ DESCRIPTION ๐ฆ
okay so real talk, what this function does is literally this: it takes a cylinder with nSides slats and bends it at nRings facets all the way around a circular path, and boom ๐ฅ you get a torus. a ``donut''. iconic behavior, no cap ๐ฉ๐
the center is at the origin, and the ``path'' rings around the z axis ๐
also!! you can poke at the torus parameters interactively with the OpenGLUT shapes demo ๐ฎ that's the move if you wanna see it in action, fr fr
๐ CAVEATS ๐
not me warning you about this โdInnerRadiusanddOuterRadiusare NOT analogous to similar measurements of an anulus ๐ญ like do not come for me when your math doesn't math. they are simply not the same thing, bestie. periodt.
๐ SEE ALSO ๐
glutSolidTorus(3) ๐ซถ
okay that's the whole page!! mwah ๐ this one's dated UNDATED and it's giving UNTITLED() โ slay, go make a donut ๐ฉโจ๐
๐ฆ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 ยท MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 ยท MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 ยท MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 ยท MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 ยท MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 ยท MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 ยท MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 ยท MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 ยท MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 ยท MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 ยท MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 ยท MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 ยท MIT
- Copyright 2004, the OpenGLUT contributors
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms