CSC418 A2 Q5 Test cases
Here are five faces of a cube:
- face1.dat
- face2.dat
- face3.dat
- face4.dat
- face5.dat
Looking at the faces from the position described in the following
camera file:
face1 will be on the left, face2 on the bottom, face3 on the right,
face4 on the top, and face5 on the center of the image. The faces are
coloured red, yellow, green, light blue and dark blue in the following
image:
Hence, the following command should give a hit, a miss, a hit, and a
miss:
intersect cam.dat 30 150 face1.dat 150 150 face1.dat 150
30 face2.dat 150 150 face2.dat
Alejo Hausner,
Dept of Computer Science,
University of Toronto
Last modified: Tue Oct 24 16:24:23 EDT 2000