Problem
DD-1. Sketch the relaxed cubic B-spline curve with
control points ,
,
,
,
. (Calculate the Bézier control
points, then sketch the Bézier curves freehand. Use a
large enough scale that your sketch is meaningful.)
Problem
DD-2. (a) In constructing a cubic B-spline curve
from given control points
, all
the Bézier control points you generate are in the convex
hull of the set of
. Why?
(b) Explain how it follows from (a) that the whole curve is
in the convex hull of the set of .
(c) If all the are on your rectangular
screen, is the whole cubic B-spline curve necessarily on
the screen? (Why?)
Problem
DD-3. (a) If you use B-spline control points
to get a B-spline curve
with
, which
affect
? (b) Which affect
?
Problem
DD-4. (a) For the relaxed cubic spline through data
points ,
,
, find
formulas for the B-spline and Bézier control points
involved. (This is the case
, so you won't need a
matrix to solve equations. Your answers will be linear
combinations of the data points.)
(b) By Lagrange, there is actually a single quadratic polynomial through the data points in (a). In general, will the two Bézier curves in (a) actually both match this one quadratic curve? (Say why or why not.)
(c) Sketch the relaxed cubic spline curve through data
points ,
,
.
(d) Show that
for the relaxed cubic spline curve
interpolating
, where
.
Problem
DD-5. For the basis functions for relaxed
cubic splines in the case , find their values at
. (You may use the results of Problem DD-
.)
Problem
DD-6. Sketch the relaxed cubic spline through data
points ,
,
,
.
(Calculate the B-spline and Bézier control points, then
sketch the Bézier curves freehand. Use a large enough
scale that your sketch is meaningful. Useful information:
.)
Problem
DD-7. Sketch the relaxed cubic spline through data
points ,
,
,
,
. (Calculate the B-spline and Bézier control
points, then sketch the Bézier curves freehand. Use a
large enough scale that your sketch is meaningful.) Useful
information:
Problem
DD-8. Suppose two people are given control points
and an affine transformation
(the same
and
for each person).
The first person finds the B-spline curve
with
control points
(
) and then
draws the curve
. The second person finds the
points
and uses them as control points to
make a B-spline curve (also for
). Do the
two people get the same curve? (Explain.)
Problem DD-9. Suppose three consecutive B-spline control points are evenly spaced on a straight line. (a) Describe the A-frame of the middle control point of the three. (b) What is the second derivative of the curve at the middle control point?
Problem
DD-10. For the Bézier curves making up a B-spline
curve, each Bézier curve depends on only several of the
control points . Therefore there is no harm in
using an infinite list of control points. In fact, the list
could be
.
(a) Sketch the B-spline curve you get if the infinite list
of keeps going around the corners of a Box:
,
,
,
, and
,
, etc., and also
,
, etc. (Calculate the
and the Bézier control points precisely and
sketch the Bézier curves freehand.)
(b) Is the curve you get an exact circle? How do you know?
Problem
DD-11. (a) Suppose two cubic polynomials
and
have equal values at
, equal
first derivatives, equal second derivatives, and equal
third derivatives. Then they must be the same polynomial.
Why? (Quote Taylor's Theorem.) (b) State a similar fact
about cubic parametric curves, and say why it follows from
(a). (c) In trying to glue cubic Bézier curves to make a
single B-spline curve, we matched first and second
derivatives, but not the third. Why not?
Problem
DD-12. (a) Find a matrix so that the
Bézier curve with control points
can be written as
.
(Method: Each column of tells the expansion of a
Bernstein polynomial in powers of
.)
(b) Suppose you have B-spline control points
. Find a matrix
so that the
Bézier control points of Bézier curve #
can be
written as
.
(See the explanation of the computer method in Section 4.)
(c) Explain how to use (a) and (b) to get a matrix
expression for the point on Bézier curve #
corresponding to a given
(with
), in terms of the
.
Problem
DD-13. Sketch the clamped cubic spline curve through
,
,
with
and
.
(Method: Calculate B-spline and Bézier control points and then sketch the Bézier curves freehand.) Useful information:
Problem
DD-14. Sketch one cartoon frame with a simple character
and some coordinate axes. Give a list of numbers that
describes the cartoon. Say what each number represents,
for example, the and
coordinates of a specific
point. Give enough information that if the numbers were
changed, someone else could draw the new position of the
character.
Problem
DD-15. The leg and foot of a cartoon character are
shown in keyframes at times , in Figure
. Sketch the interpolated frame for
, using relaxed cubic spline interpolation. (Calculate
the position of the heel precisely; for this you may use the
result of Problem DD-
for the case
at time
. You may use intuition for the other two points of
the character.)
Problem
DD-16. Suppose that you were to compute a large number of
frames based on the keyframes in Figure , for
. In what way would the motion look better than if
you had simply interpolated linearly between the first two key
frames and then interpolated linearly between the second and
third?
Problem
DD-17. Sketch the nonparametric uniform relaxed cubic spline
function with data values
. (Method: This is the
case
. Use the method of Section 8 and the basis functions
from Figure
.)
Problem
DD-18. For two Bézier curves and
, with respective lists of control points
and
, linearly interpolating between the
curves is the same as linearly interpolating between the
control points. For example, if
is the point
one-third of the way from
to
for each
, then the Bézier curve
with control points
is one-third of the way from
to
, in the sense that for each
, the point
is one-third of the way from the point
to
the point
.
(a) Prove the statement in this last sentence. (Let
, etc.)
(b) Sketch the Bézier curve that is one-third of the way
from the Bézier curve with control points ,
,
,
to the Bézier curve
with control points
,
,
,
.
Problem
DD-19. It would be possible to use Lagrange interpolation
for animation, but would the results be very good? To see what
might happen, imagine a cartoon character walking along between
times and
. She is walking at constant
speed to the right, and is walking on one level until time
, when she goes up one step and then walks at the
new level for the rest of the time. What motion
would Lagrange interpolation give? (Consult Figure
.)
Problem
DD-20. For the B-spline curve with control points
, show that for
,
(a) half the vector from
to
,
(b) twice the vector from
to the midpoint of
the segment from
to
.
Remark. These facts make it easy to look at the control
polygon for a B-spline and see where the first and second
derivatives will be larger and where they will be smaller.
Although these facts apply only at the points
, in the case of the second derivative it is easy to tell
what happens between: Since that
itself is piecewise
cubic,
is piecewise quadratic, and
is
piecewise linear, so the second derivative changes linearly from
each point
to the next, the points where you do know
the second derivative--and this includes the ends, since the
second derivative there is
0.