Rechercher une page de manuel
glutWireOctahedron
Langue: en
Version: 157189 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutWireOctahedron - Draw a wireframe octahedron.LIBRARY
OpenGLUT - geometrySYNOPSIS
In openglut.h Ft void Fn glutWireOctahedron voidDESCRIPTION
This function draws a regular wireframe 8-sided polyhedron centered at the origin. The vertices are at (+/-1, 0, 0), (0, +/-1, 0), (0, 0, +/-1).CAVEATS
We visit the same vertices the same number of times as for the solid octahedron, but the order is different.Draws every edge twice.
The lines have normals, but the normals are from the facets, rather than upon the edge. If you squint too hard, the lighting on a wireframe octahedron does not look quite right.
TODO
It may be faster (and look better) to draw each edge once, setting the Normal at each edge. (I don't think that this matters all that much, but a lineloop was proposed for the wire Cube for speed.)SEE ALSO
glutSolidOctahedron(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre