02/06/2003
15-462 Graphics I
24
Drawing the Icosahedron
•
Normal vector calculation next
•
•
•
•
•
•
•
Should be encapsulated in display list
glBegin(GL_TRIANGLES);
for (i = 0; i < 20; i++) {
icoNormVec(i);
glVertex3fv(&vdata[tindices[i][0]] [0]);
glVertex3fv(&vdata[tindices[i][1]] [0]);
glVertex3fv(&vdata[tindices[i][2]] [0]);
}
glEnd();