1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutWireOctahedron — Draw a wireframe octahedron.
5

LIBRARY

7     OpenGLUT - geometry
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutWireOctahedron(void);
14

DESCRIPTION

16     This function draws a regular wireframe 8-sided polyhedron centered at
17     the origin.  The vertices are at (+/-1, 0, 0), (0, +/-1, 0), (0, 0,
18     +/-1).
19

CAVEATS

21     We visit the same vertices the same number of times as for the solid
22     octahedron, but the order is different.
23
24     Draws every edge twice.
25
26     The lines have normals, but the normals are from the facets, rather than
27     upon the edge.  If you squint too hard, the lighting on a wireframe octa‐
28     hedron does not look quite right.
29

TODO

31     It may be faster (and look better) to draw each edge once, setting the
32     Normal at each edge.  (I don't think that this matters all that much, but
33     a lineloop was proposed for the wire Cube for speed.)
34

SEE ALSO

36     glutSolidOctahedron(3)
37
38
39
40
41                                     Epoch
Impressum