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 is
  • dOuterRadius โ€” the radius of the ``path'' ๐ŸŒ€ aka how big the circle is that the tube sweeps around
  • nSides โ€” 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 โ€” dInnerRadius and dOuterRadius are 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 ๐Ÿฉโœจ๐Ÿ’