Docsity

Practice Midterm Exam - Computer Graphics | CS 6491, Exams of Computer Graphics

Toggle sidebar
bg1
Computer graphics midterm – due 11/2/2004
1.
(a) Can a manifold triangle mesh with no boundary have 12345 triangles?
(b) Can a manifold triangle mesh with no boundary have 12345 edges?
Explain why.
2. Say you have a triangulated topological sphere (as in Euler’s formula). You cut nholes (by removing
triangles; assume the boundary of each hole is an edge loop and all these loops are disjoint) from it. What
is F−E+Vequal to?
3. Compare a ‘real’ picture of a mirror sphere taken in some environment and a synthetic image of the
sphere rendered with cubical environment map for the same environment. Is the environment reflected
from the sphere in both images the same? Explain why.
4. Check (feel free to use a symbolic computation package you know: mathematica, maple, xmaxima or
such) that the two definitions of cubic B-splines we used: the one based on averaging and the one based
on polar forms are equivalent. That is: compute the formula for a B-spline segment (controlled by 4
control points) from both definitions and check if they are the same (they are polynomials, so it’s enough
to compare coefficients).
5. Take a Bezier curve Bwith control points P0, P1, P2, P3. In the DeCasteljau algorithm, for a parameter
t∈[0,1] we computed points P01, P12, P23 , P012, P123 ,P0123 =B(t).
(a) Does the Bezier curve with control points P0, P01, P012, P0123 trace an initial section of the curve B
for all t? (we know that it does for t= 1/2 – see Bezier subdivision).
(b) Argue that the interval connecting P012 and P123 (i.e. the one we are splitting in the last step of
DeCasteljau algorithm) is tangent to B.
6. Degree-nBezier curve is a weighted average of control points, where weights can be obtained from the
expansion of ((1 −t) + t)n. Weight for the i-th control point is a function (polynomial) defined on [0,1],
let’s denote it by Bi,n (these are often called Bernstein polynomials).
(a) Find local maxima of Bi,n; briefly explain how your findings justify the term ‘control points’, i.e. that
the control points really control the shape of the curve..
(b) Plot Bi,n for n= 1,2,3,4,5 (all software allowed). Put all Bi,n for a fixed non one graph.
7. In fact, B-spline curves are also weighted averages of the control points. The weight wi(t) for the i−th
control point can be computed as follows. Take a function that is zero everywhere except for the interval
[i, i + 1], where it is equal to 1. Then, apply daveraging steps to get wi(t). Compute a formula for w0
(it’s going to be a polynomial in between each pair of consecutive integers – find these polynomials). Plot
its graph to check that it’s really smooth. Any symbolic computation/graphing software OK. Note that
weights for other control points are going to be integer shifts of the one you computed (why?)
1

Partial preview of the text

Download Practice Midterm Exam - Computer Graphics | CS 6491 and more Exams Computer Graphics in PDF only on Docsity!

Computer graphics midterm – due 11/2/

(a) Can a manifold triangle mesh with no boundary have 12345 triangles?

(b) Can a manifold triangle mesh with no boundary have 12345 edges?

Explain why.

  1. Say you have a triangulated topological sphere (as in Euler’s formula). You cut n holes (by removing triangles; assume the boundary of each hole is an edge loop and all these loops are disjoint) from it. What is F − E + V equal to?
  2. Compare a ‘real’ picture of a mirror sphere taken in some environment and a synthetic image of the sphere rendered with cubical environment map for the same environment. Is the environment reflected from the sphere in both images the same? Explain why.
  3. Check (feel free to use a symbolic computation package you know: mathematica, maple, xmaxima or such) that the two definitions of cubic B-splines we used: the one based on averaging and the one based on polar forms are equivalent. That is: compute the formula for a B-spline segment (controlled by 4 control points) from both definitions and check if they are the same (they are polynomials, so it’s enough to compare coefficients).
  4. Take a Bezier curve B with control points P 0 , P 1 , P 2 , P 3. In the DeCasteljau algorithm, for a parameter t ∈ [0, 1] we computed points P 01 , P 12 , P 23 , P 012 , P 123 , P 0123 = B(t).

(a) Does the Bezier curve with control points P 0 , P 01 , P 012 , P 0123 trace an initial section of the curve B for all t? (we know that it does for t = 1/2 – see Bezier subdivision).

(b) Argue that the interval connecting P 012 and P 123 (i.e. the one we are splitting in the last step of DeCasteljau algorithm) is tangent to B.

  1. Degree-n Bezier curve is a weighted average of control points, where weights can be obtained from the expansion of ((1 − t) + t)n. Weight for the i-th control point is a function (polynomial) defined on [0, 1], let’s denote it by Bi,n (these are often called Bernstein polynomials).

(a) Find local maxima of Bi,n; briefly explain how your findings justify the term ‘control points’, i.e. that the control points really control the shape of the curve..

(b) Plot Bi,n for n = 1, 2 , 3 , 4 , 5 (all software allowed). Put all Bi,n for a fixed n on one graph.

  1. In fact, B-spline curves are also weighted averages of the control points. The weight wi(t) for the i − th control point can be computed as follows. Take a function that is zero everywhere except for the interval [i, i + 1], where it is equal to 1. Then, apply d averaging steps to get wi(t). Compute a formula for w 0 (it’s going to be a polynomial in between each pair of consecutive integers – find these polynomials). Plot its graph to check that it’s really smooth. Any symbolic computation/graphing software OK. Note that weights for other control points are going to be integer shifts of the one you computed (why?)