02/06/2003
15-462 Graphics I
34
Start with Icosahedron
•
In sample code: control depth with ‘+’ and ‘-’
void display(void)
{ ...
for (i = 0; i < 20; i++) {
subdivide(&vdata[tindices[i][0]][0],
&vdata[tindices[i][1]][0],
&vdata[tindices[i][2]][0],
depth);
}
glFlush();
}