gleScrew(3GLE)

gleScrew πŸ’…βœ¨

okay bestie, welcome to gleScrew(3GLE) β€” this one lives in the GLE manual, section 3GLE, and it's literally just: draws screw-type shapes. that's the whole vibe. πŸŒ€


πŸŽ€ SYNTAX πŸŽ€

here's the summoning circle, copy it exactly or the compiler will simply not know you:

void gleScrew (int ncp,
               gleDouble contour[][2],
               gleDouble cont_normal[][2],
               gleDouble up[3],
            gleDouble startz,
            gleDouble endz,
            gleDouble twist);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ncp β€” how many points are in your contour. the count. the headcount. πŸ”’
  • contour β€” the 2D contour itself.
  • cont_normal β€” the 2D contour normals. (its little perpendicular besties, they ride along.)
  • up β€” the up vector for the contour.
  • startx β€” start of segment. (yes, the manpage really writes startx here while the syntax says startz β€” iconic inconsistent queen behavior, we simply report it as written πŸ‘‘)
  • endz β€” end of segment.
  • twist β€” number of rotations. πŸŒ€

πŸ’– DESCRIPTION πŸ’–

so what does it do. it draws screw-type shapes. you hand it a contour, and it extrudes that contour along the z-axis, starting at a z value of startz and running all the way to an end z-value of endz.

and during that extrusion? it spins. the contour gets spun along the contour origin by twist degrees. so you're not just pulling a shape upward, you're twisting it as it goes β€” that's the screw energy, that's the whole point, that's the main character move fr fr. πŸ“

ngl, quick heads up: the DESCRIPTION says twist is measured in degrees, while the ARGUMENTS list calls it number of rotations. both of those are in the original page, we are not picking a side. iykyk 😭

🌸 SEE ALSO 🌸

  • gleExtrusion β€” go look at that one too, they're cousins 🫢

⭐ AUTHOR ⭐

Linas Vepstas (linas@linas.org) β€” thank you for the screws, king πŸ’œ


and that's the page!! this was GLE version 3.0, gleScrew(3GLE), and yeah we're done here. slay, go twist something. πŸ’…πŸŒˆβœ¨