GLUTSOLIDOCTAHEDRON(3)
π 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 π
glutWireOctahedron(3)β her wireframe sister. same vibe, less filling. π§
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. π β¨
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms