02/14/2002
15-462 Graphics I
21
Example: Icosahedron
•Define the vertices
•
•
•
•
•
•
•For simplicity, avoid the use of vertex arrays
#define X .525731112119133606
#define Z .850650808352039932
static GLfloat vdata[12][3] = {
  {-X, 0.0, Z}, {X, 0.0, Z}, {-X, 0.0, -Z}, {X, 0.0, -Z},
  {0.0, Z, X}, {0.0, Z, -X}, {0.0, -Z, X}, {0.0, -Z, -X},
  {Z, X, 0.0}, {-Z, X, 0.0}, {Z, -X, 0.0}, {-Z, -X, 0.0}
};