gleToroid(3GLE)

πŸ’– gleToroid πŸ’–

okay bestie, welcome to gleToroid from the GLE manual β€” the generalized torus, aka a lathe with a circle contour. she's a 3GLE girlie and she's serving geometry. periodt. 🍩✨


🌸 NAME 🌸

gleToroid β€” Generalized torus, lathe with circle contour. no cap, that's literally the whole pitch. πŸŽ€


✨ SYNTAX ✨

void gleToroid (gleDouble rToroid,
                gleDouble up[3],
                gleDouble startRadius,
                gleDouble drdTheta,
                gleDouble startZ,
                gleDouble dzdTheta,
                gleDouble startXform[2][3],
                gleDouble dXformdTheta[2][3],
                gleDouble startTheta,
                gleDouble sweepTheta);

that's a whole lot of gleDoubles and honestly? iconic. copy it exactly, don't get cute with it. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rToroid β€” the circle contour (torus) radius. the roundness. the donut energy. 🍩
  • startRadius β€” where the spiral starts in the x-y plane.
  • drdTheta β€” the change in radius per revolution. so like, how much the radius grows every time you go all the way around. πŸ“ˆ
  • startZ β€” the starting z value. your beginning height, bestie.
  • dzdTheta β€” the change in Z per revolution. how much taller (or shorter) she gets each lap.
  • startXform β€” starting contour affine transformation.
  • dXformdTheta β€” tangent change xform per revolution.
  • startTheta β€” start angle in the x-y plane. where you begin your little journey. 🌈
  • sweepTheta β€” degrees to spiral around. how far you're taking this thing. go off. πŸ‘‘
also <cyan>up[3]</cyan> is sitting right there in the synopsis being mysterious and we respect her privacy. 🫢

🌟 DESCRIPTION 🌟

Generalized Torus. Similar to gleLathe, except the contour is a circle. Uses gleLathe to draw.

that's it, that's the description β€” short and slay. she's a lathe underneath, just doing it with a circular contour instead. the way that works is lowkey elegant ngl. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

  • gleSpiral
  • gleHelicoid

go read those too, bestie, they're in the same friend group. πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Linas Vepstas (linas@linas.org)


and that's a wrap, my love!! πŸŽ€ this page is from GLE, version 3.0 β€” gleToroid(3GLE) β€” so if you ever need to cite her, that's the vibe check right there. now go draw a torus and eat, you deserve it. πŸ’…βœ¨πŸ¦‹