Exercises Chapter 8


Chapter 8 Constructing a Scene


1. Design a simple scene consisting of a room with six walls, containing two desks (which should be identically constructed) and on each of the desks should be a pile of books. Ideally there should be a door into the room and a couple of windows.

2. Write the function setCTM() to enable an application program to directly set the Current Transformation Matrix.

3.There are three boxes A, B and C. A and B are next to each other, and C rests on both A and B. If either A or B is moved then this should affect C. How would you model this situation?

4. Construct a hierarchy for a simple human figure.

5. Find the plane equation of the polygon (P) which has vertices (0,0,0), (1,0,0), (1,1,1), (0,1,1). The order of points is given so that when looking at the front of the polygon, the points are in anti-clockwise order.

6(a). For edges 0 and 4 indicate the Next Vertex, Previous Vertex, Next Face and Previous Face for the Winged Edge data structure.

6(b). Explain how the winged edge data structure would be completed - that is how the wings would be found. Give an example using edges 0 and 4.

Back to: Index of Exercises
Back to: Chapter 8

Last modified: Tue Oct 02 22:42:34 GMT Daylight Time 2001