Docsity

Blossoming and Homogenization of Bezier Curves: Properties and Applications, Study notes of Computer Graphics

Toggle sidebar
bg1
Lecture 26: Blossoming
blossom abundantly, and rejoice even with joy and singing: Isaiah 35:2
1. Motivation
Linear functions are simple; polynomials are complicated. If
€
L(t)=at
, then clearly
€
L(
µ
s+
λ
t)=
µ
L(s)+
λ
L(t)
.
More generally, if
€
L(t)=at +b
, then it is easy to verify that
€
L(1−
λ
)s+
λ
t
( )
=(1−
λ
)L(s)+
λ
L(t)
.
In the first case
L(t)
preserves linear combinations; in the second case
L(t)
preserves affine
combinations. But if
P(t)=antn+L+a0
is a polynomial of degree
n>1
, then
€
P(1−
λ
)s+
λ
t
( )
≠(1−
λ
)P(s)+
λ
P(t)
.
Thus arbitrary polynomials preserve neither linear nor affine combinations. The key idea behind
blossoming is to replace a complicated polynomial function
P(t)
in one variable by a simple
polynomial function
p(u1,K,un)
in many variables that is either linear or affine in each variable.
The function
p(u1,K,un)
is called the blossom of
P(t)
, and converting from
P(t)
to
p(u1,K,un)
is called blossoming.
Blossoming is intimately linked to Bezier curves. We shall see in Section 3 that the Bezier
control points of a polynomial curve are given by the blossom of the curve evaluated at the end
points of the parameter interval. Moreover, there is an algorithm for evaluating the blossom
recursively that closely mimics the de Casteljau evaluation algorithm for Bezier curves. In this
lecture we shall apply the blossom to derive two standard algorithms for Bezier curves: the de
Casteljau subdivision algorithm and the procedure for differentiating the de Casteljau evaluation
algorithm. We shall also derive algorithms for converting between the Bernstein and monomial
representations of a polynomial. Other properties of Bezier curves such as degree elevation are
derived using blossoming in the exercises at the end of this lecture.
2. The Blossom
The blossom of a degree n polynomial
P(t)
is the unique symmetric multiaffine function
p(u1,..., un)
that reduces to
P(t)
along the diagonal. That is,
p(u1,..., un)
is the unique multivariate
polynomial satisfying the following three axioms:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Blossoming and Homogenization of Bezier Curves: Properties and Applications and more Study notes Computer Graphics in PDF only on Docsity!

Lecture 26: Blossoming

blossom abundantly, and rejoice even with joy and singing: Isaiah 35:

1. Motivation

Linear functions are simple; polynomials are complicated. If

L ( t ) = at , then clearly

L ( μ s + λ t ) = μ L ( s ) + λ L ( t ).

More generally, if

L ( t ) = at + b , then it is easy to verify that

L ( 1 − λ) s + λ t

= ( 1 − λ) L ( s ) + λ L ( t ).

In the first case L ( t ) preserves linear combinations; in the second case L ( t ) preserves affine

combinations. But if P ( t ) = a n

t

n

  • L+ a 0

is a polynomial of degree n > 1 , then

P ( μ s + λ t ) ≠ μ P ( s ) + λ P ( t )

P ( 1 − λ) s + λ t

≠ ( 1 − λ) P ( s ) + λ P ( t ).

Thus arbitrary polynomials preserve neither linear nor affine combinations. The key idea behind

blossoming is to replace a complicated polynomial function P ( t ) in one variable by a simple

polynomial function p ( u 1

,K, u n

) in many variables that is either linear or affine in each variable.

The function p ( u 1

,K, u n

) is called the blossom of P ( t ) , and converting from P ( t ) to p ( u 1

,K, u n

is called blossoming.

Blossoming is intimately linked to Bezier curves. We shall see in Section 3 that the Bezier

control points of a polynomial curve are given by the blossom of the curve evaluated at the end

points of the parameter interval. Moreover, there is an algorithm for evaluating the blossom

recursively that closely mimics the de Casteljau evaluation algorithm for Bezier curves. In this

lecture we shall apply the blossom to derive two standard algorithms for Bezier curves: the de

Casteljau subdivision algorithm and the procedure for differentiating the de Casteljau evaluation

algorithm. We shall also derive algorithms for converting between the Bernstein and monomial

representations of a polynomial. Other properties of Bezier curves such as degree elevation are

derived using blossoming in the exercises at the end of this lecture.

2. The Blossom

The blossom of a degree n polynomial P ( t ) is the unique symmetric multiaffine function

p ( u 1

,..., u n

) that reduces to P ( t ) along the diagonal. That is, p ( u 1

,..., u n

) is the unique multivariate

polynomial satisfying the following three axioms:

Blossoming Axioms

i. Symmetry

p ( u 1

,..., u n

) = p ( u σ(1)

,..., u σ ( n )

) for every permutation σ of { 1 ,..., n }

ii. Multiaffine

p ( u 1

,...,( 1 − α) u k

  • α v k

,..., u n

) = ( 1 − α ) p ( u 1

,..., u k

,..., u n

) + α p ( u 1

,..., v k

,..., u n

iii. Diagonal

p ( t ,..., t ) = P ( t )

The symmetry property says that the order of the parameters

u 1

,..., u n

does not matter when

we evaluate the blossom

p ( u 1

,..., u n

). The multiaffine property is just a fancy way to say that

p ( u 1

,..., u n

) is degree one in each variable (see Exercise 4). The diagonal property connects the

blossom back to the original polynomial. At first, these three axioms may seem very abstract and

complicated, but we shall see shortly that blossoming is both explicit and straightforward.

We are interested in blossoming because of the following key property, which we shall derive

in Section 3, relating the blossom of a polynomial to its Bezier control points.

Dual Functional Property

Let

P ( t ) be a Bezier curve over the interval

[ a , b ] with control points

P

0

,K, P

n

. Then

P

k

= p ( a ,K, a

n − k

, b ,K, b

k

k = 0 ,K, n.

We have yet to establish the existence and uniqueness of a function satisfying the three

blossoming axioms. But before we proceed to prove both existence and uniqueness, let us get a

better feel for the blossom by computing a few simple examples.

Example 1: Cubic Polynomials.

Consider the monomials 1 , t , t

2

, t

3

as cubic polynomials. It is easy to blossom these monomials,

since in each case it is easy to verify that the associated function p ( u 1

, u 2

, u 3

) given below is

symmetric, multiaffine, and reduces to the required monomial along the diagonal:

P ( t ) = 1 ⇒ p ( u 1

, u 2

, u 3

P ( t ) = t ⇒ p ( u 1

, u 2

, u 3

u 1

  • u 2

  • u 3

P ( t ) = t

2

⇒ p ( u 1

, u 2

, u 3

u 1

u 2

  • u 2

u 3

  • u 3

u 1

P ( t ) = t

3

⇒ p ( u 1

, u 2

, u 3

) = u 1

u 2

u 3

3. Blossoming and the de Casteljau Algorithm

A word about notation before we proceed. Throughout this lecture, especially in the diagrams,

we shall adopt the multiplicative notation

u 1

L u n

to represent the blossom value

p ( u 1

,K, u n

Though an abuse of notation, this multiplicative representation is highly suggestive. For example,

multiplication is commutative and the blossom is symmetric

u 1

L u n

= u σ( 1 )

L u σ ( n )

↔ p ( u 1

,..., u n

) = p ( u σ (1)

,..., u σ ( n )

Moreover, multiplication distributes through addition and the blossom is multiaffine. Thus

u =

b − u

b − a

a +

u − a

b − a

b ⇒ u 1

L u n

u =

b − u

b − a

u 1

L u n

a +

u − a

b − a

u 1

L u n

b ,

and similarly

u =

b − u

b − a

a +

u − a

b − a

b ⇒ p ( u 1

,K, u n

, u ) =

b − u

b − a

p ( u 1

,K, u n

, a ) +

u − a

b − a

p ( u 1

,K, u n

, b ).

Since symmetry and multiaffinity are the main properties featured in the diagrams, the same

diagrams make sense both for multiplication and for blossoming. Thus this multiplicative notation

for the blossom is both natural and evocative. In addition, these similarities between multiplication

and blossoming suggest that corresponding to identities for multiplication we should expect

analogous identities for the blossom. In fact, we shall see an important example of such an

analogous identity in Section 4, where we introduce an analogue of the binomial theorem for the

blossom.

Using this multiplicative notation, Figure 1 shows how to compute values of

p ( t ,K, t ) from

the blossom values p ( a ,..., a

n − k

, b , ..., b )

k

, k = 0,..., n , recursively by applying the multiaffine and

symmetry properties at each node. For example, since

t =

b − t

b − a

a +

t − a

b − a

b

it follows by the multiaffine property that

p ( a , b , t ) = p a , b ,

b − t

b − a

a +

t − a

b − a

b

b − t

b − a

p ( a , b , a ) +

t − a

b − a

p ( a , b , b ).

Similar identities hold at all the other nodes in Figure 1.

Now compare the blossoming algorithm in Figure 1 to the de Casteljau algorithm in Figure 2.

Clearly Figure 1 is the de Casteljau algorithm for

p ( t ,K, t ) = P ( t ) with control points

P

k

= p ( a , ..., a

n − k

, b ,..., b )

k

. This observation has several important consequences, which we summarize

in Theorems 3,4,5.

b – t

b – t

b – t

b – t b – t

t–a

t–a

t–a

t–a

t–a t–a

ttt

b − t

b − t

b − t

b − t

b − t b − t

t − a

t − a

t − a

t − a t − a

t − a

aaa

aab abb

bbb

aat abt bbt

att

btt

Figure 1: Computing

p ( t ,K, t ) from the blossom values p ( a ,..., a

n − k

, b , ..., b )

k

k = 0 ,K, n. Here we

illustrate the cubic case, and we adopt the multiplicative notation

uvw for

p ( u , v , w ). As usual the

label on each edge must be normalized by dividing by b − a , so that the labels along the two arrows

entering each node sum to one.

0 1 2

P ( t )

b − t

b − t

b − t

t − a

t − a

t − a

P

0 P

1 P

2

P

3

t − a

b − t

t − a

b − t

t − a

b − t

Figure 2: The de Casteljau algorithm for a cubic Bezier curve

P ( t ) on the interval [ a , b ].

Compare to Figure 1.

Theorem 3: (Every Polynomial Curve is a Bezier Curve)

Every polynomial can be expressed in Bezier form. That is, for every polynomial

P ( t ) and every

interval

[ a , b ] there exist control points

P

0

,K, P

n

such that over the interval

[ a , b ] the polynomial

P ( t ) is generated by the de Casteljau algorithm with control point

P

0

,K, P

n

Proof: This result follows immediately from Figure 1, since Figure 1 is the de Casteljau algorithm

for

p ( t ,K, t ) = P ( t ) with control points P k

= p ( a , ..., a

n − k

, b ,..., b )

k

k = 0 ,K, n.

p ( a ,..., a

n − k

, b ,..., b )

k

= q ( a ,..., a

n − k

, b ,..., b )

k

k = 0 ,K, n ,

since both sides represent the Bezier control points of P ( t ) and these control points are unique (see

Lecture 24, Section 5.2). But we have seen in Figure 3 that any arbitrary blossom value is

completely determined by these particular

n + 1 blossom values. Therefore

p ( u 1

,..., u n

) = q ( u 1

,..., u n

so the blossom of P ( t ) is unique.

3.1 Bezier Subdivision from Blossoming. The de Casteljau algorithm for subdividing Bezier

curves is easy to derive using the dual functional property (Equation 3.1) of the blossom. Let P ( t )

be a Bezier curve over the interval [ a , b ] with control points P 0

,..., P

n

. By the dual functional

property,

P

k

= p ( a , ..., a

n − k

, b ,..., b )

k

k = 0 K, n.

To subdivide this Bezier curve at the parameter t , we must find the Bezier control points for P ( t )

over the intervals [ a , t ] and [ t , b ]. Again by the dual functional property, these control points

Q

0

,..., Q

n

and R 0

,..., R

n

are

Q

k

= p ( a ,..., a

n − k

, t ,..., t )

k

k = 0 K, n

R

k

= p ( t ,..., t

n − k

, b ,..., b )

k

k = 0 K, n.

But look at Figure 1. If we interpret every triple uvw as the blossom value p ( u , v , w ) , then the

control points Q k

and R k

emerge along the left and right lateral edges of the triangle. Generalized

to arbitrary degree, this observation is precisely the de Casteljau subdivision algorithm of Lecture

  1. Notice how blossoming simplifies the analysis of Bezier curves by providing natural labels for

all the interior nodes in the de Casteljau algorithm. Blossoming is a beautiful, powerful, clever,

almost magical idea.

4. Differentiation and the Homogeneous Blossom

Points along polynomial curves can be represented in terms of the blossom by invoking the

diagonal property. But what about derivatives? Curves take on values that are points in affine

space; so too does the blossom. Indeed, only affine combinations of blossom values are permitted.

But derivatives represent tangent vectors not points. To represent derivatives, we need a variant of

the blossom that takes on values in a vector space, rather than an affine space. Here we shall

construct such a blossom by applying the technique of homogenization. Homogenization lifts the

domain (and the range) from an affine space to a vector space, so we are no longer restricted to

affine combinations, but can exploit instead arbitrary linear combinations.

4.1 Homogenization and the Homogeneous Blossom. Monomials are the simplest

polynomials. If

P ( t ) = t

n

, then

P ( c t ) = c

n

t

n

= c

n

P ( t ). Monomials are not linear --

P ( c t ) ≠ c P ( t ) -- but

P ( c t ) = c

n

P ( t ) is almost as good. On the other hand, if

P ( t ) = a n

t

n

  • L+ a 0

, n > 1 , then

P ( c t ) ≠ c

n

P ( t ) because different terms have different degrees.

The key idea behind homogenization is to introduce a new variable to homogenize the polynomial

so that all the terms have the same degree.

To homogenize a degree n polynomial P ( t ) = a k

t

k

k

∑ , we multiply each term t

k

by w

n − k

Homogenization creates a new polynomial in two variables, P ( t , w ) = a k

t

k

w

n − k

k

∑ , which is

homogeneous of degree n -- that is, each term has the same total degree n. Therefore

P ( ct , cw ) = c

n

P ( t , w ). We can easily recover P ( t ) from P ( t , w ) because P ( t ) = P ( t ,1).

Constructing P ( t , w ) from P ( t ) is called homogenization ; recovering P ( t ) from P ( t , w ) is called

dehomogenization.

To homogenize the blossom p ( u 1

,..., u n

), we homogenize with respect to each variable

independently. Thus the homogeneous version of p ( u 1

,..., u n

) is another polynomial

p ( u 1

, v 1

), ..., ( u n

, v n

( )) that is homogeneous with respect to each pair of variables ( u k

, v k

). In every

term of p ( u 1

,..., u n

) each variable u k

appears to at most the first power, so every term of the

homogeneous polynomial p ( u 1

, v 1

), ..., ( u n

, v n

( )) has as a factor either u k

or v k

but not both. Since

p ( u 1

, v 1

), ..., ( u n

, v n

( )) is homogeneous of degree one in each pair of variables ( u k

, v k

p ( u 1

, v 1

),..., c ( u k

, v k

),K,( u n

, v n

= c p ( u 1

, v 1

),...,( u k

, v k

),K,( u n

, v n

Again we can dehomogenize p ( u 1

, v 1

), ..., ( u n

, v n

( )) by setting v k

= 1 , k = 1 ,..., n. Thus

p ( u 1

,1),..., ( u n

( , 1 )) = p ( u 1

,..., u n

We can also blossom the homogenization of

P ( t ). We define the blossom of a homogeneous

polynomial P ( t , w ) to be the unique symmetric, multilinear polynomial p ( u 1

, v 1

), ..., ( u n

, v n

( )) that

reduces to

P ( t , w ) along the diagonal. Thus the homogeneous blossom satisfies the following

axioms.

blossom

homogenize

P ( t ) = t

p ( u 1

, u 2

, u 3

u 1

  • u 2

  • u 3

P ( t , w ) = t w

2

p ( u 1

, v 1

),( u 2

, v 2

),( u 3

, v 3

u 1

v 2

v 3

  • u 2

v 3

v 1

  • u 3

v 1

v 2

blossom

homogenize

blossom

homogenize

P ( t ) = t

2

p ( u 1

, u 2

, u 3

u 1

u 2

  • u 2

u 3

  • u 3

u 1

P ( t , w ) = t

2

w

p ( u 1

, v 1

),( u 2

, v 2

),( u 3

, v 3

u 1

u 2

v 3

  • u 2

u 3

v 1

  • u 3

u 1

v 2

blossom

homogenize

blossom

homogenize

P ( t ) = t

3

p ( u 1

, u 2

, u 3

) = u 1

u 2

u 3

P ( t , w ) = t

3

p ( u 1

, v 1

),( u 2

, v 2

),( u 3

, v 3

= u 1

u 2

u 3

blossom

homogenize

Figure 4: Blossoming and homogenizing the monomials

1 , t , t

2

, t

3

. Observe that blossoming and

homogenization commute.

Theorem 6: Blossoming and homogenization commute.

Proof: This result follows immediately from Figure 5, since it is straightforward to verify that the

functions in the right hand column are symmetric, multiaffine on top, multilinear on bottom, and

reduce to the corresponding functions in the left hand column along the diagonal.

blossom

homogenize

c k

k

n

) t

k

k

c k

k

n

) t

k

k

∑ w

n − k

c k k

∑ u i 1

L u i k

c k k

∑ u i 1

L u i k

v i k + 1

L v i n

blossom

homogenize

Figure 5: Blossoming and homogenization commute. The inner sum on the right hand side is

taken over all subsets { i 1

,..., i k

} of { 1 ,..., n }.

Notice that Figure 5 also establishes the existence of the homogeneous blossom, since the

expression in the lower right hand corner of the diagram is symmetric, multilinear and reduces to

the expression on the bottom left along the diagonal. Uniqueness follows from dehomogenization:

if we dehomogenize the homogeneous blossom, then we get the multiaffine blossom. Since the

multiaffine blossom is unique, rehomogenization shows that the homogeneous blossom is also

unique.

We constructed the multiaffine blossom in Figure 3 by blossoming the de Casteljau algorithm,

replacing t by a different parameter

u k

on the kth level of the algorithm. We can do the same for

the multilinear blossom. Begin by homogenizing the de Casteljau algorithm. This amounts to

replacing

b − t → bw − t and

t − a → t − aw to insure that each term has the same total degree (see

Figure 6). To blossom, we now replace the pair ( t , w ) by the pair ( u k

, v k

) on kth level of the

algorithm (see Figure 7). This process generates a symmetric, multilinear function that reduces to

the homogeneous curve when we replace each pair ( u k

, v k

) by ( t , w ). This function is multilinear

rather than multiaffine because it is linear in ( u k

, v k

) on the kth level of the algorithm. Thus u k

or

v k

, but not both, appears in every term to the first power. Notice, by the way, that if we blossom

first and then homogenize, we get exactly the same diagram. Blossoming first gives us Figure 3;

homogenizing this diagram generates Figure 7. We illustrate all four variants of the de Casteljau

algorithm -- original, blossomed, homogenized, and blossomed and homogenized -- in Figure 8.

b – t

t

t

t

bw − t

bw − t

bw − t

bw − t

bw − t bw − t

t − aw

t − aw

t − aw

t − aw t − aw

t − aw

aaa

aab abb bbb

aa

t

ab

t bb

t

a

t

t b

t

t

Figure 6: The homogeneous version of the de Casteljau algorithm for cubic Bezier curves. This

diagram is generated from the de Casteljau algorithm (Figure 1) by replacing

b − t → bw − t and

t − a → t − aw along the edges of the triangle. Here we use ~ to denote homogeneous values, so

t = ( t , w ) while a = ( a , 1 ). Notice that

( t , w ) =

bw − t

b − a

( a , 1 ) +

t − aw

b − a

( b ,1).

att

aat abt

aaa aab abb bbb

bbt

btt

b–t

b–t

b–t

b–t

b–t b–t

t–a

t–a

t–a

t–a

t–a t–a

ttt

abb aaa aab bbb

bw–t

bw–t

bw–t

bw–t bw–t

bw–t

t–aw

t–aw

t–aw

t–aw

t–aw t–aw

ttt*

aat* abt* bbt*

att btt

aaa aab abb bbb

aau* 1 bbu* 1

auu 1 2 buu 1 2

uuu* 1 2 3

bv –u 1 1

bv –u 1 1

bv –u 1 1

u –av 1 1 u –av 1 1

bv –u 2 2

bv –u 3 3

u –av 1 1

u –av 2 2

u –av 3 3

bv –u 2 2

u –av 2 2

1

abu*

abu bbu

aaa

u –a 3

b–u 3

u –a 2

b–u 2

b–u 1

u –a 1

u –a 1 u –a 1

aab abb bbb

aau 1 1 1

au u 1 2 bu u 1 2

u u u 1 2 3

b–u 1

b–u 1

u –a 2

b–u

2

blossom

homogenize homogenize

blossom

Figure 8: Four versions of the de Casteljau algorithm for cubic Bezier curves: the standard

version (upper left), the homogeneous version (lower left), the blossomed version (upper right), and

the homogeneous blossom (lower right). Blossoming and homogenization commute, since we get

the same result by traversing right and then down or down and then right. Here we use

  • to denote

homogeneous values, so

t

= ( t , w ) and

u

= ( u , v ) whereas

a = ( a , 1 ) and

b = ( b , 1 ).

4.2 Differentiating the de Casteljau Algorithm. We built the homogeneous blossom to deal

specifically with differentiation. We are now going to use a variant of Taylor’s theorem along with

the binomial expansion of the homogenous blossom to derive a formula for the derivatives of a

polynomial in terms of the values of its homogeneous blossom.

Theorem 7: ( Taylor’s Theorem)

Let

P ( t ) be a polynomial of degree n. Then

P ( t + h ) =

P

( k )

( t )

k!

h

k

k = 0

n

Proof: Recall from calculus that the standard version of Taylor’s theorem is:

P ( x ) = P ( t ) +

P ( t )( x − t ) +

P ′′( t )

( x − t )

2

+ L+

P

( n )

( t )

n!

( x − t )

n

Setting

x = t + h yields

P ( t + h ) = P ( t ) +

P ( t ) h +

P ′′( t )

h

2

+ L+

P

( n )

( t )

n!

h

n

We can also compute

P ( t + h ) using the diagonal property of the homogeneous blossom. Let

t = ( t , 1 ) , and

δ = ( 1 ,0). Then

t + h ≡ ( t + h , 1 ) = ( t , 1 ) + h ( 1 ,0) = t + h δ.

Therefore by the diagonal property of the homogeneous blossom

P ( t + h ) = p ( t + h δ,K, t + h δ).

We can expand

p ( t + h δ,K, t + h δ) by the multilinear property to get a formula for

p ( t + h δ,K, t + h δ) similar in form to the binomial theorem.

Theorem 8: (Binomial Expansion)

Let

p ( u 1

,K, u n

) be a symmetric multiaffine function. Then

p ( t + h δ,K, t + h δ) = ( k

n

) p ( t ,K, t

n − k

,δ,K,δ

k

) h

k

k = 0

n

where

t = ( t , 1 ) and

δ = ( 1 ,0).

Proof: The proof is an inductive argument, similar to the inductive proof of the binomial theorem.

We illustrate the case

n = 2 and leave the general case as an exercise (see Exercise 8). To prove the

result for

n = 2 , just expand by linearity:

p ( t + h δ, t + h δ) = p ( t , t + h δ) + p ( h δ, t + h δ)

= p ( t , t ) + p ( t , h δ) + p ( h δ, t ) + p ( h δ, h δ)

= p ( t , t ) + 2 p ( t , h δ) + p ( h δ, h δ)

= p ( t , t ) + 2 p ( t ,δ) h + p ( δ,δ) h

2

Theorem 9: Let P be a polynomial of degree n, and let p be the homogenous blossom of P. Then

P

( k )

( t ) =

n!

( n − k )!

p ( t ,K, t

n − k

,δ,K,δ

k

where

t = ( t , 1 ) and

δ = ( 1 ,0).

Proof: By the diagonal property of the homogeneous blossom

P ( t + h ) = p ( t + h δ,K, t + h δ).

and this equality is valid for all values of h. Comparing the coefficients of

h

k

in Equation (4.1)

b – t

t δδ

b − t

− 1

t − a

1

1

1

aaa

aab

abb bbb

aa δ ab δ bb δ

a δδ b δδ

− 1 1 − 1 1

− 1

− 1

Figure 10: The second derivative of a cubic Bezier curve. Compare to Figure 7 with

( u 1

, v 1

) = ( u 2

, v 2

) = δ = ( 1 ,0), and

( u 3

, v 3

) = ( t , 1 ).

4.3 Conversion Algorithms Between Monomial and Bezier Form. We can also use

blossoming to develop algorithms to convert between monomial and Bezier form. That is, given the

monomial coefficients of a polynomial, we can find the Bezier control points, and conversely given

the Bezier control points we can find the monomial coefficients. The key observation here is that

the monomial coefficients are derivatives, at least up to constant multiples, and we have just seen

that derivatives can be represented, at least up to constant multiples, by values of the homogeneous

blossom.

To see the connection between monomial coefficients, derivatives, and blossom values, suppose

P ( t ) = a 0

  • a 1

t + L + a k

t

k

  • L + a n

t

n

Recall that by Taylor’s theorem

P ( t ) = P (0) +

P (0) t + L+

P

( k )

k!

t

k

+ L +

P

( n )

n!

t

n

Comparing the coefficients of

t

k

and invoking Theorem 9 yields

a k

P

( k )

k!

k

n

) p (0,K, 0

n − k

,δ,K,δ

k

k = 0 ,K, n , (4.4)

or equivalently

p (0,K, 0

n − k

,δ,K,δ

k

a k

k

n

where

δ = ( 1 ,0). Equation (4.4) is reminiscent of Equation (3.1) for the interval

[0, 1 ]

P

k

= p (0,...,

n − k

k

k = 0 ,K, n ,

which gives the Bezier control points of

P ( t ) over the interval

[0, 1 ]. Thus to convert between

monomial and Bezier form, we need only convert from one set of blossom values to another. We

illustrate these conversion algorithms for cubic curves in Figure 11; these algorithms generalize to

arbitrary degree in the obvious manner. Notice that to convert between monomial and Bezier form,

the monomial coefficients must be normalized by multiplying or dividing by binomial coefficients.

δδδ

000 001 011 111

00 δ 01 δ 11 δ

0 δδ

1 δδ

− 1 − 1

− 1

1

1

1

111

1

000 00 δ 0 δδ δδδ

001 01 δ 1 δδ

011

11 δ

1 1 1 1

1

1 1 1

1 1

Bezier Control Points

Bezier

Control Points

Monomial Coefficients

Monomial

Coefficients

1

(a) Bezier to Monomial Form (b) Monomial to Bezier Form

Figure 11: Conversion between cubic Bezier and cubic monomial form. In (a) we convert from

Bezier to monomial form; in (b) we convert from monomial to Bezier form. Notice that the labels

along the edges in these diagrams do not need to be normalized because

1 = ( 1 , 1 ) = (0, 1 ) + ( 1 , 0 ) = 0 + δ. Thus we subtract at each node to get from Bezier control points to

monomial coefficients, and we add at each node to get from monomial coefficients to Bezier control

points. These algorithms work in arbitrary degree. Notice that the diagram for the algorithm to

covert from Bezier to monomial form is the same as the diagram for the algorithm to compute the

nth derivative of a Bezier curve over the interval

[0, 1 ].

5. Summary

Blossoming is a potent tool for deriving properties of Bezier curves. In this lecture we applied

blossoming to derive the de Casteljau subdivision algorithm and the de Casteljau differentiation

algorithm for Bezier curves, as well as algorithms to convert between monomial and Bezier form.

B-splines can also be conveniently investigated from the perspective of blossoming; we shall

investigate B-splines in our next lecture.

Blossoming is related to Bezier curves because each node in the de Casteljau algorithm has an

interpretation in terms of a blossom value. There are also several important variants of the de

Casteljau algorithm that can be generated by straightforward substitutions.

b – t

t

t

t

bw − t

bw − t

bw − t

bw − t

bw − t

bw − t

t − aw

t − aw

t − aw

t − aw

t − aw

t − aw

aaa

aab

abb bbb

aa

t

ab

t bb

t

a

t

t

b

t

t

Figure 14: The homogeneous version of the de Casteljau algorithm for cubic Bezier curves:

t = ( t , w )

b – t

tt δ

b − t

b − t

− 1

b − t

t − a

t − a

1

t − a

aaa

aab

abb bbb

aa δ ab δ bb δ

at δ bt δ

− 1 1 − 1 1

Figure 15: The differentiated version of the de Casteljau algorithm for cubic Bezier curves:

δ = ( 1 ,0).

We close with a summary of the primary properties of the blossom. The first three

properties are the blossoming axioms -- the three properties that uniquely characterize the blossom.

Property iv is the key connection between blossoming and Bezier curves, and Property v is the

connection between blossoming and differentiation.

Primary Properties of the Blossom

i. Symmetry

p ( u 1

,K, u n

) = p ( u σ (1)

,K, u σ ( n )

) for every permutation

σ of

{ 1 ,K, n }.

ii. Multiaffine

p ( u 1

,K,( 1 − α) u k

  • α v k

,K, u n

) = ( 1 − α ) p ( u 1

,K, u k

,K, u n

) + α p ( u 1

,K, v k

,K, u n

iii. Diagonal

P ( t ) = p ( t ,K, t

n

iv. Dual Functional

P

k

= p ( a ,K, a

n − k

, b ,K, b

k

) = kth Bezier Control Point

v. Differentiation

P

( k )

( t ) =

n!

( n − k )!

p ( t ,K, t

n − k

,δ,K,δ

k

δ = ( 1 ,0)

Exercises:

  1. Let P ( t ) and Q ( t ) be polynomials of degree n. Prove that:

a. If R ( t ) = P ( t ) + Q ( t ), then r ( u 1

,..., u n

) = p ( u 1

,..., u n

) + q ( u 1

,..., u n

b. If

S ( t ) = cP ( t ), then

s ( u 1

,..., u n

) = c p ( u 1

,..., u n

  1. Let

P ( t ) = ( t − a )

n

. Show that

p ( u 1

,..., u n

) = ( u 1

− a )L( u n

− a ).

  1. Let P k

n

( t ) =

( t − t k

n

( t j

− t k

j ≠ k

, k = 0,K, n , and let P ( t ) = P k

n

( t ) P k

k = 0

n

∑. Using the result of

Exercise 2, show that P k

= p ( t 0

,K, t k − 1

, t k + 1

,K, t n

  1. Let p ( u 1

,..., u n

) be a polynomial in which each variable appears to at most the first power. Show

that p ( u 1

,..., u n

) is multiaffine.

  1. Let p ( u 1

, v 1

), ..., ( u n

, v n

( )) be a polynomial in which either u k

or v k

, but not both, appears in

every term to the first power for k = 1 ,..., n. Show that p ( u 1

, v 1

), ..., ( u n

, v n

( )) is multilinear.

  1. Let u 1

L u n

denote the polynomial ( u 1

− t )L( u n

− t ). Show that with this interpretation the

algorithms represented by Figures 1 and 3 remain valid.

  1. Let P ( t , w ) and Q ( t , w ) be two homogeneous polynomials of degree n. Show that

a.

P ( ct , cw )

Q ( ct , cw )

P ( t , w )

Q ( t , w )

b.

P ( t , w ) = w

n

P ( t / w ,1).