Computer Graphics Fall 2010 group home
Homework 8, Due by email to Peter Honig on Nov 29.
Consider the data file in chippchair.dat, modified from http://www-inst.cs.berkeley.edu/~cs184/fa09/resources/meshes/chippchair-fixed.obj It defines a chippendale chair.
- The first 1727 lines each define one vertex.
- The remaining 3438 lines each gives the vertices for one triangle, counting from 1.
- plotchair.cc is a simple program to plot it:
- However the program is inefficient.
- This homework is to rewrite the program to use one call to glDrawElements plus whatever you need to set up its arguments.