Docsity

Midterm Exam - Computer Graphics | COMP 360, Exams of Computer Graphics

Toggle sidebar
bg1
Comp 360 -- Midterm Exam
The following are the rules for this examination:
•a three hour time limit to finish the entire exam;
•you need not do the entire exam in one session, but once you read a
problem you must finish the problem without taking time out (except
for obvious emergencies);
•Please write all your answers in INK, not in pencil! Pencil is difficult to read.
If you want to change an answer, just cross out your old answer and write
your new answer. Do not try to erase.
•closed textbook, closed notes; some helpful identities appear on pages 2,3.
•all work must be entirely your own;
•you may not confer on any problems with any person except the professor;
•the exam must be handed in to my office no later than Noon on Wednesday,
October 25.
There are 5 problems on the exam. Each problem is worth 50 points. For full
credit you must do all 5 problems.
Good luck.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Midterm Exam - Computer Graphics | COMP 360 and more Exams Computer Graphics in PDF only on Docsity!

Comp 360 -- Midterm Exam

The following are the rules for this examination:

  • a three hour time limit to finish the entire exam;
  • you need not do the entire exam in one session, but once you read a

problem you must finish the problem without taking time out (except

for obvious emergencies);

  • Please write all your answers in INK, not in pencil! Pencil is difficult to read.

If you want to change an answer, just cross out your old answer and write

your new answer. Do not try to erase.

  • closed textbook, closed notes; some helpful identities appear on pages 2,3.
  • all work must be entirely your own;
  • you may not confer on any problems with any person except the professor;
  • the exam must be handed in to my office no later than Noon on Wednesday,

October 25.

There are 5 problems on the exam. Each problem is worth 50 points. For full

credit you must do all 5 problems.

Good luck.

Dot Product € u • v =| u | | v | cos( θ) (definition) € u • v = v • u (commutative) € u • ( v + w ) = u • v + u • w ( v + w )• u = v • u + w • u (distributive) € | v | 2 = v • v (length) € cos( θ) = u • v | u | | v | (angle) € u || = u • v v • v

v u || = ( u • v ) v if | v |= 1 (parallel projection) € u ⊥ = u − u || = u − u • v v • v

v u ⊥ = u − ( u • v ) v if | v | = 1 (perpendicular projection) € u • v = 0 ⇔ u ⊥ v (orthogonality) Cross Product € | u × v |=| u || v |sin( θ) u × v ⊥ u , v sgn( u , v , u × v ) > 0 (definition) € area ( u , v ) = | u × v | (area) € ( u × v )• u = 0 ( u × v )• v = 0 (orthogonality) € u × u = 0 u × v = 0 ⇔ v ||± u (parallelism) € u × ( v + w ) = u × v + u × w ( v + w ) × u = v × u + w × u (distributive) € u × v = − v × u (anti-commutative) € u × ( v × w ) = ( u • w ) v − ( u • v ) w ( v × w ) × u = ( u • v ) w − ( u • w ) v (non-associative) € | u × v | 2 =| u | 2 | v | 2 − ( u • v ) 2 (length) € ( u 1 × u 2 )• ( v 1 × v 2 ) = ( u 1 • v 1 )( u 2 • v 2 ) − ( u 1 • v 2 )( u 2 • v 1 ) (Lagrange Identity)

1. (50 points)

Consider the pentagonal bump and the corresponding bump fractal depicted in

Figure 1:

a. Write a turtle program to generate the pentagonal bump.

b. Write a turtle program to create the corresponding bump fractal.

c. How many transformations would you need to generate this bump fractal

using an iterated function system (IFS)?

d. Describe four of the transformations in the iterated function system (IFS)

that generate this fractal c urve.

e. Compute the fractal dimension of this fractal curve.

Figure 1: A pentagonal bump and the corresponding bump fractal.

2. (50 points)

Consider the fractal tree depicted in Figure 2:

a. Write a turtle program to generate this fractal tree.

b. Describe the transformations in the iterated function system (IFS)

that generate this fractal tree.

c. Describe the condensation set of this fractal tree.

Figure 2: A fractal tree.

4. (50 points)

Without appealing to coordinates, prove that:

a.

| u × v |

=| u |

| v |

− ( u • v )

b.

u × ( v × w ) + v × ( w × u ) + w ×( u × v ) = 0.

c.

( u 1 × u 2 ) × ( v 1 × v 2 ) = det( u 1 , u 2 , v 2 ) v 1 − det( u 1 , u 2 , v 1 ) v 2.

d.

( u 1 × u 2 ) × ( v 1 × v 2 ) = det( u 1 , v 1 , v 2 ) u 2 − det( u 2 , v 1 , v 2 ) u 1.

5. (50 points)

Parallel projection is projection onto a plane S along the direction of a unit

vector u. As usual the plane S is defined by a point Q and a unit normal

vector n (see Figure 3).

a. Show that under parallel projection for any vector v and any point P

i.

v

new

= v −

v • n

u • n

u

ii.

P

new

= P −

( P − Q ) • n

u • n

u

b. Show that the

4 × 4 matrix representing parallel projection is given by

PProj ( Q , n , u ) =

I −

n

T

∗ u

u • n

Q • n

u • n

u 1

c. Suppose that

  • S is the xy-plane ,
  • u is the unit vector parallel to the vector

Write down the explicit entries of the

4 × 4 matrix

PProj ( Q , n , u ).

€ S

Q

n

P

P

new

v

new

v

c u

Figure 3: Parallel projection along a direction u into a plane S.