• Nu S-Au Găsit Rezultate

View of Stancu Curves in CAGD

N/A
N/A
Protected

Academic year: 2022

Share "View of Stancu Curves in CAGD"

Copied!
17
0
0

Text complet

(1)

Rev. Anal. Num´er. Th´eor. Approx., vol. 31 (2002) no. 1, pp. 71–87 ictp.acad.ro/jnaat

STANCU CURVES IN CAGD

ADALBERT CSABA HATVANY

Abstract. Starting from the one-parameter dependent linear polynomial Stancu operator, we consider the related polynomial curve scheme with one scalar shape parameter. This scheme, called by us the Stancu curve scheme, generalizes in a suitable manner the classical Bernstein-B´ezier scheme and provides more design flexibility by means of the shape parameter.

MSC 2000. Primary 65D17, 65D05; Secondary 65D10, 68U05.

Keywords. curve scheme, de Casteljau algorithm, B´ezier curve, P´olya curve, Stancu operator.

1. INTRODUCTION

Let us begin by recalling that the (one-parameter dependent linear polyno- mial) Stancu operatorSn;α, for the intervalI = [0,1] and a functionf :I →R,

(Sn;αf) (x) =

n

X

i=0

Sin;α(x)fni, whereα is a real parameter and

Sin;α(x) = n i

!

i−1

Q

j=0

(x+jα)

n−i−1

Q

j=0

(1−x+jα) (1 +α)(1 + 2α). . .(1 + (n−1)α),

has been introduced and investigated by D. D. Stancu already in 1968 (see [16] where the polynomialsSn;αi (x) are denoted by wn,i(x;α)).

The Stancu operator was studied further by Stancu in his subsequent papers [17], [18], as well as in several papers published by other authors (see [8], [5], [14], and [15]).

Although the Stancu operator has many properties similar to the Bernstein operator, until now only a few considerations from the point of view of CAGD (computer aided geometric design) of the Stancu polynomials Sin;α has been made: [9], [11], [10], [7], [19], [20], [21].

Starting with the classical P´olya’s urn model as introduced by F. Eggen- berger and G. P´olya [4], R. N. Goldman [11] studies the corresponding one- parameter dependent probability distributionsDin(a, x) and the curve scheme related to these distributions. The distributions Din(a, x) are exactly the

WMF AG, CAD/CAM Systems, D-73309 Geislingen/Steige, Germany. Mailing address:

Bahnhofstraße 18, D-73329 Kuchen/Fils, Germany, e-mail: [email protected].

(2)

Stancu polynomials Sin;α(x) as observed by Stancu in [17]. The curves that use the distributions Din(a, x) as blending functions are called by Goldman P´olya curves. Ph. J. Barry and R. N. Goldman generalize this one-parameter dependent curve scheme to a curve scheme depending on 2nparameter, where n is the degree of the curves. This generalized curves are also called P´olya curves. We will use the term Stancu curves for the one-parameter case, letting the term P´olya curves denote the multi-parameter case. Thus, for us a Stancu curve is a uniform P´olya curve, where the parameter α gives the step of the progressive knot sequence (for details see [2], [3] or Sec. 4 bellow).

The aim of this paper is to study the polynomial curve scheme based on the Stancu polynomials. We begin in Section 2 by giving a brief overview of factorial powers and generalized binomial coefficients. Then, in Section 3 we formally introduce the Stancu polynomials and prove the first properties. The Stancu curve scheme is presented in Section 4. In Section 5 we establish the degree elevation formula, while Section 6 is devoted to the derivative formula for the new curve scheme. Conclusions are presented in the last section.

2. FACTORIAL POWERS AND GENERALIZED BINOMIAL COEFFICIENTS

In this brief section we recall some useful facts concerning the factorial powers and the generalized binomial coefficients and establish our notation.

Let α be a fixed real number. For each x ∈R and n∈N thenth factorial power of x (with respect toα) is defined by

(2.1) x[0;α]:= 1, x[n;α]:=x[n−1;α]·(x+ (n−1)α), n= 1,2, ...

Although the factorial power depends explicitly on the value of the param- eter α, when the context is clear, we shall write simply x[n] instead ofx[n;α].

From this definition follows immediately that

(2.2) x[n]=

n−1

Y

i=0

(x+iα)

for everyn∈N, where the void product is considered to be equal to 1.

For eachn∈Nwe define

(2.3) x[−n]:= 1

x[n] .

The following properties can be easily derived from the definition above:

x[m+n]=x[m]·(x+mα)[n]=x[n]·(x+nα)[m], (2.4)

x[m]

x[n] = x+ min{m, n}[m−n]

(2.5)

forn, m∈N.

(3)

Now it is easy to see that for eachn∈Nand for two arbitrary real numbers aand b, the binomial formula generalizes to

(2.6) (a+b)[n]=

n

X

i=0 n

i

a[i]b[n−i].

To simplify some formulae we use thegeneralized binomial coefficients (with respect toα)niα defined by the following recurrence:

(2.7) n0α := 1, niα := 1+(n−1)α1 n−1i α+n−1i−1

α

.

Again, if the context is clear, we shall write simply ni instead of ni

α. From the definition follows immediately that

(2.8) ni= (ni)

1[n] .

Now, the generalized binomial formula can be written as (2.9) (a+b)[n]= 1[n]

n

X

i=0

n

i

a[i]b[n−i].

3. STANCU POLYNOMIALS

This section formally introduces the Stancu polynomials and gives the first properties.

For x ∈R we writeu(x) =u =x and v(x) = v = 1−x. Note that v and u are the affine coordinates of the pointx ∈R w.r.t. the interval I = [0,1].

Consider n∈ N and α a fixed real number such that αh1n, ifn 6= 0, orα = 0 if n= 0. For x∈R,r = 0,1, . . . , n and i= 0,1, . . . , r we define the polynomials

S0r;α(x) :=S00(x)≡1, r = 0 (3.1)

Sir;α(x) := u+(i−1)α1+(r−1)αSi−1r−1;α(x) +v+(r−i−1)α1+(r−1)α Sir−1;α(x), r = 1,2, . . . , n , where Sjs;α is considered null if j /∈ {0,1, . . . , s}. Again, when the context is clear, we drop the superscript α and denote Sir;α simply by Sir. Clearly, Sir are univariate polynomials of degree at mostndepending on the independent variablex. In fact,Sirare polynomials of degree exactlyn, as we shall see later (see Remark 3.1). Now we give the formal definition of the Stancu polynomials and prove that they satisfy the recurrence relation (3.1).

Definition 3.1. Let n ∈ N and α be a fixed real number such that αh1n, if n6= 0, or α = 0 if n= 0. For r = 0,1, . . . , n and i = 0,1, . . . , r the polynomial

(3.2) riu[i]v[r−i]

(4)

(where the factorial powers and the generalized binomial coefficient are con- sidered w.r.t. the parameter α) is called the ith Stancu polynomial of degree r over the interval [0,1] (with the parameterα).

Theorem 3.2. The polynomials Sir, r = 0,1, . . . , n, i= 0,1, . . . , r,are the Stancu polynomials, namely

(3.3) Sir=riu[i]v[r−i].

Proof. We use induction onn. The result is certainly true forr= 0. Assume it is so for r−1. Then by the recursion formula (3.1)

Sir = u+(i−1)α1+(r−1)αSi−1r−1+ v+(r−i−1)α1+(r−1)α Sir−1

= u+(i−1)α1+(r−1)αr−1i−1u[i−1]v[r−i−1]+v+(r−i−1)α1+(r−1)α r−1i u[i]v[r−i−1]

= 1+(r−1)α1 r−1i−1+r−1i u[i]v[r−i]

=riu[i]v[r−i],

where for the last equality we used (2.7).

Remark 3.1. Similar to Bernstein polynomials, the Stancu polynomials have the following properties:

(1) The polynomialsSin are of degree n.

(2) For α= 0, the Stancu polynomials specialize to the Bernstein polynomials:

Sin=Bin= niuivn−i.

(3) For α=−1n,n6= 0, the Stancu polynomials specialize to the Lagrange polynomials for the knotsxi= ni,i= 0,1, . . . , non the interval [0,1]:

Sin=Lni =

n

Y

j=0 j6=i

(x−xj) , n

Y

j=0 j6=i

(xixj).

(4) For α≥0, the Stancu polynomials are nonnegative over [0,1].

(5) Sin(0) =δi0 and Sin(1) =δin fori= 0,1, . . . , n.

In the next section we present the curve scheme built on the Stancu polyno- mials. For a curve scheme the affine invariance property, i.e. the independence from the coordinate system is crucial. It is well known that this property is equivalent to the partition of unity property for the blending function of the scheme. The next theorem shows that the Stancu polynomials indeed partition the unity. We omit the straightforward proof by induction on n.

Theorem3.3. Forα≥0 the Stancu polynomialsSni, i= 0,1, . . . , n, n∈N form a partition of unity.

Figure 3.1 illustrates the Stancu polynomials of degree 3 for different shape parameter values.

(5)

0 0.25 0.5 0.75 1

0 0.25 0.5 0.75 1

Fig. 3.1. The Stancu polynomials of degree 3 with different values for the shape parameter α(solid: α= 0.1, dotted: α= 0.9).

4. STANCU CURVES

The present section contains the major results. We introduce the Stancu curve scheme which generalize the B´ezier curve scheme preserving all prop- erties which are vital for applications in curve design. Moreover, the Stancu curve scheme provides more flexibility for the designer by means of the shape parameterα. We will see later (see Section 6), that the shape parameter can be implemented in a transparent manner into a CAD system controlling the Stancu scheme.

In the rest of the paper, α is considered a nonnegative parameter. We denote by Pn(R,Rm) the space of polynomials of degree at most n over R with values inRm.

Definition 4.1. Let FPn(R,Rm) an arbitrary polynomial. The repre- sentation

(4.1) F =

n

X

i=0

PiSin,

where Pi ∈Rm, i= 0, . . . , n is called theStancu representation of the polyno- mialF on [0,1]. IfF admits such a representation, we say that the restriction of F to [0,1] defines a Stancu curve on [0,1] with the shape parameter α.

The points Pi, i= 0, . . . , nare the (Stancu) control pointsand they define the (Stancu) control polygon.

(6)

As with B´ezier curves, we have the following evaluation algorithm for Stancu curves.

Theorem4.2. (De Casteljau Algorithm)Consider the pointsPj ∈Rm, j= 0, . . . , n, where n ∈ N, n6= 0. Define the points Pijk ∈Rm, i+j+k =n so that

(4.2) Pij0 :=Pj, Pijk+1(x) := 1+(i+j)αv+iα Pi+1,jk (x) +1+(i+j)αu+jα Pi,j+1k

fork= 0, . . . , n−1andx∈R. ThenP00n(x)is a Stancu curve with the control points Pj, j= 0, . . . , n.

Proof. To show that P00n is a Stancu curve, we must derive the represen- tation (4.1). We will show a bit more. We prove that the sums sk(x) = P

i+j+k=nPijk(x)Sjn−k(x) do not depend onk= 0, . . . , n. Then we have s0(x) = X

i+j=n

Pij0(x)Snj(x) =

n

X

j=0

PjSjn(x), and sn(x) = X

i+j=0

Pijn(x)Sj0(x) =P00n(x).

The equality s0(x) =sn(x) gives the required representation.

To prove that the sumssk(x) are all the same for anyk= 0, . . . , n, we start with

sk(x) = X

i+j+k=n

Pijk(x)Sjn−k(x)

= X

i+j+k=n

Pijk(x)hv+(n−k−1−j)α

1+(n−k−1)α Sjn−k−1(x) +1+(n−k−1)αu+(j−1)α Sj−1n−k−1(x)i=

= X

i+j+k=n

Pijk(x)1+(i+j−1)αv+(i−1)α Sjn−k−1(x) + X

i+j+k=n

Pijk(x)1+(i+j−1)αu+(j−1)α Sj−1n−k−1(x).

Re-indexing the last sum we obtain sk(x) = X

i+j+k=n−1

Pi+1,jk (x)1+(i+j)αv+iα Sjn−k−1(x)

+ X

i+j+k=n−1

Pi,j+1k (x)1+(i+j)αu+jα Sjn−k−1(x)

= X

i+j+k=n−1

h v+iα

1+(i+j)αPi+1,jk (x) +1+(i+j)αu+jα Pk(x)iSjn−k−1(x).

Using (4.2) we have

sk(x) = X

i+j+k+1=n

Pijk+1(x)Sjn−(k+1)(x) =sk+1(x).

(7)

The de Casteljau algorithm is conveniently represented as a triangle array of computations, as illustrated in Figure 4.1. The functions along the edges of this graph are the coefficients on the right-hand side of the formula (4.2).

Notice that if two arrows point into the same node, their labels sum to one. We can reverse the arrows in the triangle, place 1 at the apex of the triangle, run the computation downward and read the Stancu polynomials off the base of the triangle. This means that reversing the arrows, the triangle array represents the recursive computation formula (3.1) for the Stancu polynomials.

Forα= 0 both the recursive computation algorithm (3.1) for Stancu poly- nomials and the de Casteljau algorithm (4.2) for Stancu curves specialize to the Bernstein-B´ezier case.

t

t

t

t

t

t

t

t

t

t

A A A A A A K A A A A A A K A A A A A A K

A A A A A A K A A A A A A K

A A A A A A K

P300 =P0

P201

P102

P003

P210 =P1

P111

P012

P120 =P2

P021

P030 =P3 v+2α

1+2α

v+α 1+α

v

v+α 1+2α

v 1+α

v 1+2α

u+2α 1+2α u+α

1+α

u

u+α 1+2α u

1+α

u 1+2α

Fig. 4.1. The de Casteljau algorithm for a cubic Stancu curve.

Other important properties for Stancu curve are listed by the following corollary and follow easily from the properties of the Stancu polynomials.

Corollary 4.3. (1) LetIijk+1be the interval[−iα,1+jα], i+j+k=n.

In thekth step, k= 0,1, . . . , n, of the de Casteljau algorithm the point Pijk+1 divides the interval Jijk+1 = [Pi+1,jk (x), Pi,j+1k (x)] exactly in the same ratio as the pointx divides the interval Iijk+1.

(8)

(2) Stancu curves are affine invariant.

(3) Stancu curves interpolate the end points of the control polygon, i.e.

P00n(0) =P0 andP00n(1) =Pn.

(4) Stancu curves are included in the convex hull of their control polygon.

If the blending functions for a curve scheme form a basis of the whole space Pn(R,Rm) then any polynomial curve of degree at mostncan be represented as a curve belonging to the scheme. We will show now that the Stancu polyno- mials form indeed a basis for the space of polynomials of degree at mostn.

We recall from [3] the definition of P´olya polynomials, but see also [11], [1], and [2].

Definition 4.4. Let t1, . . . , tn be 2n real numbers such that ti+n 6=tj for 1 ≤ ijn (i.e. t1, . . . , tn is a progressive sequence). The nth degree polynomials

(4.3) pni(x) =

n+i

Y

j=i+1

(tjx), i= 0,1, . . . , n

are called the P´olya polynomials of degree n over the knot sequence ¯t :=

{t1, . . . , tn}.

The Stancu polynomials are special P´olya polynomials. More precisely, we have the following result.

Proposition 4.5. Denotet¯={tj, j= 1, . . . ,2n}the knot sequence defined by

(4.4) tj =

−(n−j)α, 1≤jn 1 + (j−n−1)α, n+ 1≤j≤2n

Up to coefficients, the Stancu polynomials are the P´olya polynomials over the knot sequence ¯t, i.e.

(4.5) pnn−i= (−1)i

n

i

Sin, i= 0,1, . . . , n.

Proof. We have successively Sin(x) =niu[i]v[n−i]=ni

n−i−1

Q

j=0

(1 +x)

i−1

Q

j=0

(jα+x)

= (−1)ini 2n−iQ

k=n+1

(1 + (k−n−1)α−x)

n−i+1

Q

j=n

(−(n−j)αx)

= (−1)ini 2n−iQ

k=n+1

(tkx) Q

k=n−i+1

n(tkx)

= (−1)ini

2n−i

Q

k=n−i+1

(tkx) = (−1)inipnn−i(x).

(9)

The P´olya polynomialspnn−i, i= 0,1, . . . , n form a basis forPn(R,Rm) [2], [3]. Hence the following theorem holds.

Theorem 4.6. Every polynomial FPn(R,Rm) admits a Stancu repre- sentation F = Pni=0PiSin, where Pi ∈ Rm, i = 0,1, . . . , n are the control points of the Stancu curve defined by F. Starting from the control points Pi, i= 0,1, . . . , n the de Casteljau algorithm (4.2) evaluates the Stancu curve defined by F at any point x∈[0,1].

5. DEGREE ELEVATION OF STANCU CURVES

The B´ezier curves admit a simple two-term degree elevation formula. Let B = Pni=0PiBin, Pi ∈ Rm be a B´ezier curve of degree n, where Bin, i = 0,1, . . . , ndenotes the Bernstein polynomials of degree nover [0,1].

It is well known [6], [13] that the points ¯Pi, i= 0,1, . . . , n in the represen- tation B = Pn+1i=0 P¯iBin+1 of B as a B´ezier curve of degree n+ 1 are given by

(5.1) P¯i = n+1i Pi−1+ 1−n+1i Pi, i= 0,1, . . . , n+ 1.

In other words, holding the end control points fixed : ¯P0 =P0,P¯n+1=Pn+1 and substituting then−1 inner control pointsPi, i= 1, . . . , n−1 bynpoints P¯i, i= 1, . . . , n with affine coordinates (n+1i ,1−n+1i ), i= 1, . . . , n, we obtain the control points of the same B´ezier curve considered now as an (n+ 1)st degree curve. Note that the control points ¯Pi, i= 0,1, . . . , n+ 1 depend only on the order they appear in the sequenceP0, . . . , Pn+1, i.e. only on the index i.

Despite of their greater flexibility provided by the shape parameter, the Stancu curves have, surprisingly, the very same two-term degree elevation for- mula as the B´ezier curves. The explanation consists in the fact that the Stancu polynomials have similar degree elevation formulae to those of Bernstein poly- nomials. One easily see that

u+(n−i)α

1+nα Sni = n+1i+1 Si+1n+1, (5.2)

v+iα

1+nαSni = n+1−in+1 Sin+1 (5.3)

and hence

(5.4) Sin= n+1−in+1 Sn+1i +n+1i+1 Si+1n+1

for i = 0,1, . . . , n. For α = 0 these formulae specialize to the well known degree elevation formulae for Bernstein polynomials:

u Bin= n+1i+1 Bi+1n+1, (5.5)

v Bin= n+1−in+1 Sin+1, and respectively (5.6)

Bin= n+1−in+1 Bin+1+n+1i+1 Bi+1n+1 (5.7)

fori= 0,1, . . . , n.

(10)

To establish the degree elevation formula for Stancu curves, consider the nth degree Stancu curve S = Pni=0PiSin. Expressing S as a (n+ 1)st degree curve we have Pni=0PiSin=Pn+1i=0 P¯iSin+1.Observe that 1+nαv+iα + u+(n−i)α1+nα = 1 and use (5.4) to get

n

X

i=0

PiSin=

n

X

i=0

PiSni v+iαi+nα+

n

X

i=0

PiSinv+(n−i)α1+nα

=

n

X

i=0

Pin+1−in+1 Sin+1+

n

X

i=0

Pin+1i+1Si+1n+1

=

n

X

i=0

Pin+1−i

n+1 Sin+1+

n+1

X

i=1

Pi−1 i n+1Sin+1

=P0S0n+1+

n

X

i=1

h i

n+1Pi−1+ 1− n+1i PiiSin+1+Pn+1Sn+1n+1. The last equality yields

Theorem5.1. Let Pn+1i=0 P¯iSin+1 be the expression of thenth degree Stancu curve S = Pni=0PiSin as an (n+ 1)st degree Stancu curve. Then P¯0 = P0, P¯n+1 =Pn+1 and

(5.8) P¯i = n+1i Pi−1+ 1−n+1i Pi, i= 1,2, . . . , n.

6. CHANGE OF BASIS AND THE DERIVATIVE OF STANCU CURVES

The B´ezier curves have a very simple derivative formula. Consider the B´ezier curveB =Pni=0PiBni with the control points Pi ∈Rm, i= 0,1, . . . , n.

It is known [6], [13] that the derivative of the curveB is given by

(6.1) dxd B=n

n−1

X

i=0

(Pi+1Pi)Bin−1.

From here follows that at the point B(0) = P0 the curve is tangent to the vectorP1P0, and at the point B(1) =Pn the curve is tangent to the vector PnPn−1.

Unfortunately there is no simple derivative formula for Stancu curves. The tangent vector at the first (last) control point depends not only on the first (last) two control points as in the case of B´ezier curves, but rather on all control points. To establish the formula for the tangent vectors at the end points of a Stancu curve we will first transform the Stancu curve into a B´ezier curve to obtain a relationship between the Stancu and the B´ezier control points. This relationships leads us then to the formula for the tangent vectors.

But first we start with the following result about the Stancu polynomials.

(11)

Theorem 6.1. Let Sin=niu[i]v[n−i], i= 0,1, . . . , n be the ith Stancu poly- nomial of degree n and let α be positive. Then for any x∈[0,1]we have (6.2) dxdSin(x) = 1+(n−1)αn

i−1 X

j=0

u+(i−1)α

i(u+jα) Si−1n−1(x)−

n−i−1

X

j=0

v+(n−i−1)α (n−i)(v+jα)Sin(x)

.

Proof. Clearly,

d

dxSni(x) =niv[n−i] ddxu[i]+u[i] ddxv[n−i]. One can easily verify that

d dx

u[i]=

i−1

P

j=0

u+(i−1)α u+jα u[i−1]

and

d dx

v[n−i]=−i−1P

j=0

v+(n−i−1)α

v+jα v[n−i−1], and hence

d

dxSin(x) =ni

Pi−1 j=0

u+(i−1)α

u+jα u[i−1]v[n−i]

i−1

X

j=0

v+(n−i−1)α

v+jα v[n−i−1]u[i]

= n

i

n−1 i−1

i−1

X

j=0

u+(i−1)α

u+jα Si−1n−1(x)− n

i

n−1 i

i−1

X

j=0

v+(n−i−1)α

v+jα Sin−1(x).

Simplifying and re-ordering the right-hand side of the last equality we obtain (6.2):

d

dxSin(x) = i(1+(n−1)α)n i−1

X

j=0

u+(i−1)α

u+jα Si−1n−1(x)

(n−i)(1+(n−1)α)n n−i−1

X

j=0

v+(n−i−1)α

v+jα Sin−1(x)

= 1+(n−1)αn i−1

X

j=0

u+(i−1)α

i(u+jα) Si−1n−1(x)−

n−i−1

X

j=0

v+(n−i−1)α

(n−i)(v+jα)Sin−1(x)

.

For α= 0 the derivative formula for Stancu polynomials specializes to the derivative formula

d

dxBni(x) =nhBi−1n−1(x)−Bin−1(x)i for Bernstein polynomials.

We now turn our attention to the topic of transforming the Bernstein basis Bin, i= 0,1, . . . , ninto the Stancu basisSin, i= 0,1, . . . , n. Our aim is to find

(12)

a recurrence relation for the (n+ 1)×(n+ 1) matrixMn=hMjini such that

(6.3) Sin=

n

X

j=0

MjinBjn.

The following theorem re-establishes a known result [10] using only the definition of the matrixM and the recurrence formula (3.1) for Stancu curves.

Theorem 6.2. The transformation matrix Mn from the B´ezier basis into the Stancu basis satisfies the following recurrence:

Mjin+1= n+1j h1+(i−1)α1+nα Mj−i,i−1n +(n−i)α1+nα Mj−1,in i (6.4)

+n−j+1n+1 h(i−1)α1+nαMj,i−1n +1+(n−i)α1+nα Mj,ini, where the entries Mkln with k, l /∈ {0,1, . . . , n} are considered null.

Proof. By definition Sin+1 =

n+1

X

j=0

Mjin+1Bjn+1, i= 0,1, . . . , n+ 1.

Applying the recurrence formula (3.1) for Stancu polynomials to the right- hand side and using the definition of Mn we get

Sn+1i = u+(i−1)α1+nα Si−1n +v+(n−i)α1+nα Sin

= u+(i−1)α1+nα

n

X

j=0

Mj,i−1n Bjn+v+(n−i)α1+nα

n

X

j=0

Mj,inBjb

=

n

X

j=0

hu+(i−1)α

1+nα Mj,i−1n + v+(n−i)α1+nα Mj,iniBjn.

Using (5.5), (5.6) and (5.7) in the left-hand side of the last equality and re- grouping we have

Sin+1=

n

X

j=0 j+1 n+1

h1+(i−1)α

1+nα Mj,i−1n +(n−iα1+nαMjiniBn+1j+1 +

n

X

j=0 n−j+1

n+1

h(i−1)α

1+nαMj,i−1n +1+(n−i)α1+nα MjiniBjn+1.

Now changing the summation indexj toj+ 1 in the first sum, separating the term corresponding to j=n+ 1 in the first sum and the term corresponding toj= 0 in the second sum, and collecting all other term under the a common

sum symbol, we get the recurrence relation.

A very important property of the matrix Mn is given by the next theorem.

We recall that a matrix [Aij]n×nisstochasticprovided its elements are nonneg- ative and its rows form partitions of unity, i.e. Pnj=0Aij = 1, i= 0,1, . . . , n.

(13)

Theorem6.3. (see also Example 6 in [10]) The transformation matrixMn from the Bernstein basis into the Stancu basis is a stochastic matrix.

Proof. Forn= 0 the assertion is true. SupposeMnis stochastic. Using the recurrence of the matrixMn we get successively

n+1

X

i=0

Mjin+1 = n+1j

n+1

X

i=0

1+(i−1)α

1+nα Mj−1,i−1n + n+1j

n+1

X

i=0 (n−1)α

2+nα Mj−1,in +n−j−1n+1

n+1

X

i=0 (i−1)α

1+nα Mj−1,in +n−j−1n+1

n+1

X

i=0

1+(n−i)α 1+nα Mj,in, where the entries Mk,ln with k, l /∈ {0,1, . . . , n} are considered null. Hence

n+1

X

i=0

Mjin+1= n+1j

n+1

X

i=1

1+(i−1)α

1+nα Mj−1,i−1n +n+1j

n

X

i=0 (n−1)α

1+nα Mj−1,i−1n +n−j−1n+1

n+1

X

i=1 (i−1)α

1+nα Mj,i−1n +n−j−1n+1

n+1

X

i=1 (i−1)α

1+nα Mj,i−1n +n−j−1n+1

n

X

i=0

1+(n−i)α 1+nα Mj,in. Re-indexing we get

n+1

X

i=0

Mjin+1 = n+1j

n

X

i=0

Mj−1,in +n−j+1n+1

n

X

i=0

Mjin = n+1j + n−j+1n+1 = 1.

Now we are able to establish a derivative formula for Stancu curves.

Consider the Stancu curveS =Pni=0PiSin and express the Stancu polyno- mials in the Bernstein basis using (6.3). Then

S =

n

X

i=0

Pi

n

X

j=0

MjinBnj =

n

X

j=0 n

X

i=0

MjinPi

! Bjn.

By the previous theorem the sum Pni=0MjinPi is an affine combination of the Stancu control points Pi, i = 0,1, . . . , n, i.e. it defines a point Qj = Pn

i=0MjinPi, j = 0,1, . . . , n in Rm. Clearly, Qj, j = 0,1, . . . , n are the B´ezier control points for the Stancu curve S. We apply (6.1) to get a derivative formula:

d dxS=n

n−1

X

j=0

(Qj+1Qj)Bn−1j =n

n−1

X

j=0 n

X

i=0

Mj+1,in Pi

n

X

i=0

MjinPi

! Bjn−1. This formula expresses the derivative of the Stancu curve S in terms of the Bernstein basis. One can convert the Bernstein polynomials back into the Stancu polynomials using the inverse of the matrix Mn to obtain the derivative of the curveSin terms of Stancu polynomials. We will not perform

(14)

this transformation. Instead we turn to find an expression for the tangent vectors to the Stancu curveS at the end control pointsP0 and Pn.

To this end, observe that P0 = Q0 and Pn = Qn by the interpolatory property of the Stancu and B´ezier curves. For the transformation matrix Mn this means that the first row is the vectorM0,•n = (1,0, . . . ,0) and the last row is the vectorMn,•n = (0, . . . ,0,1). Calculating the derivative of the curveS for x= 0 and x= 1 we obtain

d dxS

x=0=n

n

X

i=0

M1inPiP0

!

and similarly

d dxS

x=1=n

n

X

i=0

Mn−1,in PiPn

!

respectively.

We collect this result into the next theorem.

Theorem 6.4. Consider the Stancu curveS =PnPiSin and letMn be the transformation matrix from the Bernstein basis {Bin, i= 0,1, . . . , n} into the Stancu basis{Sin, i= 0,1, . . . , n}. At the point corresponding to the parameter valuex= 0 the curveS is tangent to the vectorH1−P0, whereH1 is the point having the affine coordinates (M10n, . . . , M1nn) relative to the control points. At the point corresponding to the parameter valuex= 1 the curveS is tangent to the vector Hn−1Pn, where Hn−1 is the point having the affine coordinates (Mn−1,0n , . . . , Mn−1,nn ) relative to the control points.

Note that for a given set of control points the points H1 and Hn−1 depend only on the shape parameter α. Hence, these points can be used ashandles to model the curve. Acting on this points the designer is able to modify (implicitly and transparently) the value of the shape parameter α, modifying thus the shape of the curve.

We illustrate this for a Stancu curve of degree 3. For the transformation matrix the recurrence formula (6.4) gives

M1=

1 0 0 1

, M2 =

1 0 0

α 2(1+α)

1 1+α

α 2(1+α)

0 0 1

and

M3 =

1 0 0 0

3α+4α2 3(1+2α)(1+α)

1 1+2α

α (1+2α)(1+α)

2 3(1+2α)(1+α) 2

3(1+2α)(1+α)

α (1+2α)(1+α)

1 1+2α

3α+4α2 3(1+2α)(1+α)

0 0 0 1

.

(15)

For the cubic Stancu curve with fixed control pointsP0,P1,P2, andP3 the handle points H1 and H2 are then given by

H1 = 3(1+2α)(1+α)3α+4α2 P0+1+2α1 P1+(1+2α)(1+α)α P2+3(1+2α)(1+α)2 P3

and respectively

H2 = 3(1+2α)(1+α)2 P0+(1+2α)(1+α)α P1+1+2α1 P2+ 3(1+2α)(1+α)3α+4α2 P3. Figure 6.1 shows a cubic Stancu curve for different values of the shape parameterα.

P0

H1(0) =P1 P2

P3 H1(0.3)

H1(0.9)

Fig. 6.1. A Stancu cubic for different values of the shape parameterα

7. CONCLUDING REMARKS AND FUTURE WORK

We have considered a class of polynomial curves based on the Stancu polyno- mial operator, the Stancu curves. These curves have a simple explicit formula and simple recurrence formula for the blending functions. Additionally, the Stancu curves have a shape parameter which may allow a designer to manipu- late the shape of the curve without moving the control points, and to introduce such important effects as bias and tautness. These curves may be interesting for CAGD application. In some ways the Stancu curves are more flexible than the B´ezier curves and the author used successfully these curves in ornamental design applications.

Referințe

DOCUMENTE SIMILARE

Stancu, On the remainder of approximation of functions by nteans of a parameter-de- pendent linear polynomial operator, Studia Univ.. Stancu, Representalion of Remøinders

Illustration of the neuromuscular anatomy in the inferior axilla (a); sonoanatomy of the muscles at the level of the distal axillary fold (b) and at the lesser tubercle of the

1 Department of Physical Medicine and Rehabilitation, National Taiwan University Hospital, Bei-Hu Branch and National Taiwan University College of Medicine, Taipei, Taiwan, 2

We apply this program to compute the first and the second edge-Wiener index of the molecular graph of fullerene C 12n+4 , Figure 2.. Then by curve fitting method, we will find a

It will also discuss several free trade agreements that are in effect in the region as well as efforts by the country to join the Trans-Pacific Partnership (TPP) and the

De¸si ˆın ambele cazuri de mai sus (S ¸si S ′ ) algoritmul Perceptron g˘ ase¸ste un separator liniar pentru datele de intrare, acest fapt nu este garantat ˆın gazul general,

Thus, if Don Quixote is the idealist, Casanova the adventurous seducer, Werther the suicidal hero, Wilhelm Meister the apprentice, Jesus Christ will be, in the audacious and

Secondary outcomes of the current study were the first attempt suc- cess rate of US-guided cannulation in the life-case setting and time needed to obtain successful