GLUTSOLIDTORUS(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– GLUTSOLIDTORUS πŸ’–

okay bestie so this is glutSolidTorus(3) from the OpenGLUT manual, and it lives in the geometry section of the library. yes, we're drawing donuts today. it's giving bakery. 🍩✨


✨ NAME ✨

glutSolidTorus β€” draw a solid torus, no cap, fr fr. 🫢

πŸ“š LIBRARY πŸ“š

OpenGLUT β€” geometry

🌸 SYNOPSIS 🌸

like, here's how you summon it:

#include <openglut.h>

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

πŸŽ€ PARAMETERS πŸŽ€

  • dInnerRadius β€” the radius of the ``tube''. that's the fatness of the donut ring itself, iykyk.
  • dOuterRadius β€” the radius of the ``path'' β€” the circle the tube gets swept around. the big picture radius, basically.
  • nSides β€” how many facets go around the ``tube''. more sides = smoother tube, less sides = chunky lil polygon vibe.
  • nRings β€” how many joints run along the ``path''. same deal, more rings = smoother curve.

πŸ’… DESCRIPTION πŸ’…

okay so picture this: this function effectively wraps a cylinder that has nSides slats, and then it bends that whole thing at nRings facets around a circular path. and boom πŸ’₯ β€” you get a torus. a donut. the shape of all shapes.

the center is at the origin, and the ``path'' rings around the z axis. so like, it's lying flat around z. no cap.

and listen β€” the torus parameters can be explored interactively with the OpenGLUT shapes demo. go poke at it, it's lowkey so fun. πŸ”₯

πŸ’€ CAVEATS πŸ’€

bestie. listen. dInnerRadius and dOuterRadius are NOT analogous to similar measurements of an anulus. do not come for me with annulus math, they do not map like that. it's a whole different situation. πŸ™ˆ

🌈 SEE ALSO 🌈

  • glutWireTorus(3) β€” the wireframe sibling. the see-through version. main character energy, but hollow. ✨

that's the whole page, bestie πŸ’œ β€” it's UNDATED (no date, she's timeless, she's mysterious πŸ¦‹) and the source line just says UNTITLED(), which is so unbothered of it honestly. slay. πŸ‘‘πŸŒΈ