30.08.2014 Views

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

12 CS488/688 Introduction to Computer Graphi<strong>cs</strong><br />

5.4 Exact Colour [Last Used: Fall 1990]<br />

Suppose that we are designing a modelling program for a museum that will use images generated<br />

by our software to evaluate architectural <strong>and</strong> lighting proposals for the interior of a new building,<br />

<strong>and</strong> that it is particularly important to model accurately the appearance of the paintings that will<br />

hang in the building. Explain why representing object colour by RGB triplets would probably not<br />

be satisfactory.<br />

6 Geometry<br />

6.1 Affine combination [Last Used: Fall 2011 Final]<br />

Which of the following are valid expressions in affine geometry, where P, Q, R are points, ⃗v is a<br />

vector, <strong>and</strong> B n i (t) = ( n<br />

i) (1 − t) n−i t i .<br />

Expression Valid? Expression Valid? Expression Valid?<br />

(P + Q)/2 2P − Q Q − 2P<br />

P − 2Q + R P − 20⃗v P − 2Q + ⃗v<br />

(1 − t)P + tQ cos 2 (t)P + sin 2 ∑<br />

(t)R<br />

ni=1<br />

Bi n(t)P i<br />

(P + Q)/R R/(P · Q) ⃗v × (P − Q)<br />

6.2 Spaces [Last Used: Winter 2007 <strong>Midterm</strong>]<br />

Here, in alphabetic order, are the four kinds of spaces we constructed to underst<strong>and</strong> the geometry<br />

of computer graphi<strong>cs</strong>:<br />

1. Affine space<br />

2. Cartesian space<br />

3. Euclidean space<br />

4. Vector space<br />

Write them in order so that each space is an extension of the previous one. Between every two<br />

spaces, write down what was added to the first space to get the second one.<br />

Which of these spaces is the simplest one in which we <strong>ca</strong>n talk about parallel lines?<br />

Which of these spaces is the simplest one in which we <strong>ca</strong>n talk about perpendicular lines?<br />

6.3 Planar Polygon Test [Last Used: ?]<br />

Given a sequence of n points P 1 , . . . , P n in in three dimensions, describe a boolean function<br />

Planar(P 1 , . . . , P n ) that returns true if <strong>and</strong> only if the points lie in a common plane. If you give<br />

pseudo-code, comment the code to indi<strong>ca</strong>te what it is doing.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!