Assignment #5

Date assigned: 11/30/95
Date due: 12/12/95
Points: 50

You are to define a cube in 3-space where each face of the cube has a different color associated with it and the center of the cube is around the origin. In general, you are to be able to view this cube from anywhere in the world where the world and viewport parameters are defined by the user at the beginning of the program. Your program is to be menu driven with the following options:

1) Show a wireframe picture of the cube looking straight down the z-axis.
2) Rotate the wireframe cube cw by 180 degrees about the axis defined by the two points: back,upper,right & front,lower,left
3) View the wireframe cube from anywhere in space specifying: (a) view reference point (b) view plane normal (c) view-up direction (d) view distance. Supply a default which is looking from above the cube at the front,top edge
4) View the color cube from anywhere in space as in #3 above.

Note1: Part 4) above is worth 8 points.
Note2: Implement this program in C++.
Note3: Save the source as cube.cpp and the executable as cube.exe.
Note4: This assignment is due by 4:00pm on Tuesday, December 12, 1995.