GLUTSOLIDOCTAHEDRON(3)

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

πŸ’Ž GLUTSOLIDOCTAHEDRON(3) πŸ’Ž

okay bestie, gather round, because today we are talking about glutSolidOctahedron from the OpenGLUT geometry collection β€” and she is serving geometry, no cap. πŸ¦‹


✨ NAME ✨

glutSolidOctahedron β€” draw a solid octahedron. that's it. that's the whole job. and she does it flawlessly. πŸ’…


πŸ“š LIBRARY πŸ“š

OpenGLUT - geometry πŸŽ€

like, this is where she lives. this is her house. 🏠


🌸 SYNOPSIS 🌸

#include <openglut.h>

void
glutSolidOctahedron(void);

she takes no arguments. zero. nada. she doesn't need your input, she doesn't need your opinions, she just needs you to call her. main character energy fr fr. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function draws a regular, solid 8-sided polyhedron β€” that's your octahedron, babes β€” and it's centered at the origin. 🌈

and where do the vertices land? iconic question, so glad you asked:

  • (+/-1, 0, 0)
  • (0, +/-1, 0)
  • (0, 0, +/-1)

that's six vertices, all sitting one unit out along each axis, in both directions. it's giving diamond. it's giving two pyramids kissed at the base. it's giving slay. βœ¨πŸ’Ž


⚠️ CAVEATS ⚠️

so, lowkey important: we visit the same vertices the same number of times as we do in the wire octahedron β€” but the order is different. 🫠

that's it. that's the caveat. same points, same count, different sequence. don't come for me, it's just how she rolls. πŸ’€


πŸ‘€ SEE ALSO πŸ‘€


not me writing a whole manpage for a shape with eight faces and absolutely no drama... except the vertex order thing, which we do not talk about. πŸ™ˆ

and that's the whole page, bestie!! πŸ«ΆπŸ’œ this one comes to you from the OpenGLUT corner of the world, dated UNDATED (mysterious, we love a timeless queen ⭐), and the footer just says UNTITLED() β€” which honestly? iconic. no title, no date, just vibes. periodt. πŸ’…βœ¨