Docsity

5 Unsolved Problems on Computer Graphics - Final Exam | CS 3451, Exams of Computer Graphics

Toggle sidebar
bg1
1. Use the de Casteljau algorithm:
P01 = 0.5P0+ 0.5P1= (0,0.5)
P12 = 0.5P1+ 0.5P2= (0.5,1)
P23 = 0.5P2+ 0.5P3= (1,0.5)
P012 = 0.5P01 + 0.5P12 = (0.25,0.75)
P123 = 0.5P12 + 0.5P23 = (0.75,0.75)
BP0P1P2P3(0.5) = P0123 = 0.5P012 + 0.5P123 = (0.5,0.75)
2. Also here, use the de Casteljau algorithm:
P01 =2
3
P0+1
3
P1
P12 =2
3
P1+1
3
P2
P23 =2
3
P2+1
3
P3
P012 =2
3
P01 +1
3
P12
P123 =2
3
P12 +1
3
P23
BP0P1P2P3(1
3) = P0123 =2
3
P012 +1
3
P123 =2
3(2
3
P01 +1
3
P12) + 1
3(2
3
P12 +1
3
P23) =
=4
9
P01 +4
9
P12 +1
9
P23 =4
9(2
3
P0+1
3
P1) + 4
9(2
3
P1+1
3
P2) + 1
9(2
3
P2+1
3
P3) =
=8
27
P0+4
9
P1+2
9
P2+1
27
P3
3. The tangent vector of the first curve (at endpoint, (3,3)) is [1,2] and the
tangent to the second curve (at starting point, (3,3)) is [1,1]. The two vectors
are not parallel, so the curves don’t join smoothly.
(3,3) can be moved to (for example) (3,2.5) – the midpoint of the interval
connecting (2,1) and (4,4).
4. Double the sequence to get
(0,0),(0,0),(0,1),(0,1),(1,0),(1,0),(1,1),(1,1),(0,0),(0,0),(1,1),(1,1)
Now, averaging operations lead to the following sequences (first entries form the
answer to the problem):
(0,0),(0,1
2),(0,1),(1
2,1
2),(1,0),(1,1
2),(1,1),(1
2,1
2),(0,0),(1
2,1
2),(1,1)
(0,1
4),(0,3
4),(1
4,3
4),(3
4,1
4),(1,1
4),(1,3
4),(3
4,3
4),(1
4,1
4),(1
4,1
4),(3
4,3
4)
(0,1
2),(1
8,3
4),(1
2,1
2),(7
8,1
4),(1,1
2),(7
8,3
4),(1
2,1
2),(1
4,1
4),(1
2,1
2)
1
pf2

Partial preview of the text

Download 5 Unsolved Problems on Computer Graphics - Final Exam | CS 3451 and more Exams Computer Graphics in PDF only on Docsity!

  1. Use the de Casteljau algorithm:

P 01 = 0. 5 P 0 + 0. 5 P 1 = (0, 0 .5) P 12 = 0. 5 P 1 + 0. 5 P 2 = (0. 5 , 1) P 23 = 0. 5 P 2 + 0. 5 P 3 = (1, 0 .5) P 012 = 0. 5 P 01 + 0. 5 P 12 = (0. 25 , 0 .75) P 123 = 0. 5 P 12 + 0. 5 P 23 = (0. 75 , 0 .75) BP 0 P 1 P 2 P 3 (0.5) = P 0123 = 0. 5 P 012 + 0. 5 P 123 = (0. 5 , 0 .75)

  1. Also here, use the de Casteljau algorithm:

P 01 =^23 P 0 +^13 P 1 P 12 =^23 P 1 +^13 P 2 P 23 =^23 P 2 +^13 P 3 P 012 =^23 P 01 +^13 P 12 P 123 =^23 P 12 +^13 P 23 BP 0 P 1 P 2 P 3 (^13 ) = P 0123 =^23 P 012 +^13 P 123 =^23 (^23 P 01 +^13 P 12 ) +^13 (^23 P 12 +^13 P 23 ) = =^49 P 01 +^49 P 12 +^19 P 23 =^49 (^23 P 0 +^13 P 1 ) +^49 (^23 P 1 +^13 P 2 ) +^19 (^23 P 2 +^13 P 3 ) = = 278 P 0 +^49 P 1 +^29 P 2 + 271 P 3

  1. The tangent vector of the first curve (at endpoint, (3, 3)) is [1, 2] and the tangent to the second curve (at starting point, (3, 3)) is [1, 1]. The two vectors are not parallel, so the curves don’t join smoothly. (3, 3) can be moved to (for example) (3, 2 .5) – the midpoint of the interval connecting (2, 1) and (4, 4).
  2. Double the sequence to get

(0, 0), (0, 0), (0, 1), (0, 1), (1, 0), (1, 0), (1, 1), (1, 1), (0, 0), (0, 0), (1, 1), (1, 1)

Now, averaging operations lead to the following sequences (first entries form the answer to the problem):

(0, 0), (0,

  1. We’ll just solve part (d) here, giving the general formula for any number of subdivision stages. The number of triangles grows by a factor of 4 with each subdivision step and initially, there are 4 triangles. Thus, the general formula for the number of triangles after N iterations of subdivision is

TN = 4 ∗ 4 N^ = 4N^ +

. The number of edges and vertices EN and VN can be computed from the Euler’s formula. But first, use the usual counting argument to get 3TN = 2EN. Hence EN =

TN = 6 ∗ 4 N^.

Now, from the Euler’s formula:

VN = 2 + EN − TN = 2 + 6 ∗ 4 N^ − 4 ∗ 4 N^ = 2 + 2 ∗ 4 N^.