• No results found

Modified Method for Generating B-Spline Curves of degree Three and their Controlling

N/A
N/A
Protected

Academic year: 2021

Share "Modified Method for Generating B-Spline Curves of degree Three and their Controlling"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

Abstract

The reaction between designer, and design needs modified methods to control the design. This paper presents modified mathematical technique for controlling the generation of the 2D designs of third degree, by using modified Gallier of Bezier curves. The paper discuses a polynomial in terms, of polar forms, with respect to the parameter. The modified method has resulted in good starting point, to generate which 2D design, algorithm which allows the designer to produce a design in combinational way allows him to get the shape that he has in his mind keeping the four control points for 2D design.

The method shows a great flexibility in 2D design controlling area with changing. There is no need to change the control points of the design; moreover efficiency in designs is obtained in comparison with that needed for conventional methods.

ةقيرط ريوطت

ل

ديلوت

تاينحنم

(

B-Spline

)

ةثلاثلا ةجردلا نم

يلع ةرطيسلاو

اه

ةمحر حلاص معنمل دبع .د

د

.

اللهدبع فسوي يلع

دبع .د

ا

نيسحلا دبع رباج نسحمل

ةصلاخلا

و ميمصتلاب مكحتلا قرط ريوطت ىلا جاتحي ميمصتلاو ممصملا نيب لعافتلا ريوطت

بلا اذه

ضرعي ثح

ةةةينقت

يةةضاير

روةةطم

ىةةلع رطيةةسلل

ةةصتلا دةةيلوت

ا

ميم

نث

أ

ةةةيئ

دلا نةةم داةةعبلأ

ر

ةةةللاللا ةةةج

.

اداتةةسأب

ريوطت

Gallier

نمل

ح

ين

B-Spline

.

مت

نم

يةنحنم ةشقا

ة دودةحلا ددةعتم

دودةحل اطقتةسلأ ي

.تاريغتملا ىلا ةبسنلاب ةيلصفملا

لأ ديج ةيادب ةطقن يطعي ببسلا اذهو

قت حارتق

ميماةصتلا دةيلوتل ةةين

ئانث

ىةلع وةصحلا نةم ةةنكمت ةةيلعافت ةةقيرطب ريوطتو ينحنملاديلوت ممصملل حيتي يذلاو داعبلأ ةي

ق اوتب ظافتحلاا عم ةتليام ي ةنوك يذلا لكشلا

ةعبرلاا رطيسلا طاقن عم

ةطاملل ةةيلكيهلا

ئانث

ةةي

.داعبلأ

ا اجم ي ةيلاع ةنورم ةحرتقملا ةقيرطلا تتبث

ميمصتلاب مكحتل

ئانث

داةعبلأ ةةي

طاةقن رةييغت ود نةم

كلذك .ميمصتلل رطيسلا

انتبث

ةقيرطلا

اهن

قرةط نةم دةجويام عم ةنراقملاب ميماصتلا ي ءافك رلك

.ةقباس

Modified Method for Generating B-Spline

Curves of degree Three and their Controlling

Dr. A.M.S. Rahma Dr. A.Y. Abdullah Dr. A. M. J. Abdul-Hussen [email protected] [email protected] [email protected] University of Technology University of Technology University of Technology

(2)

1-Introduction

This paper takes up the study of a polynomial curve. Polynomial curve is defined in terms, of polar forms. Natural way to polarize polynomial curve. The approach yields polynomial curve .It is shown versions of the de-Boor algorithm can be turned into subdivisions, by giving an efficient method of performing subdivision. It is also shown that it is easy to compute a new control net from given net. Intuitively this depends on the parameters, this is one of indications that deals with curve. The affine frame, for simplicity of notation is denoted as F (u). Intuitively, a polynomial curve is obtained by bending the real affine curve using a polynomial map. This present method a different method, for controlling and generating the 2D design. The arithmetical technique is used to generate Gallier cubic B-Spline curve by using de- Boor algorithm, as given in [1], [2].This new work is modified for controlling and generate curves with no need to change the control points of B-Spline curve.

2-

Polar Form of a Polynomial Curve. [1], [2].

A method of specifying polynomial curves that yield very nice geometric constructing the curves is used the polar polynomial form.

Consider a polynomial of degree two as

+bX+c.

2

X F(X) =a

The function of two variables

+c. 1 +bx 2 x 1 )=ax 2 x 1, (x 1 f

The polynomial F (X) on the diagonal, for all (X, X),

1

F(X)=f in the sense that

. It 2 x and 1 x affine in each of is 1 R, f

X is 1 f would be tempting to say that

, this is not 2 x and 1 x linear in each of

true, due to the presence of the term is only

1

f , and c and of the constant

1

bx

biaffine. Not that

+c. 2 +bx 1 x 2 )=ax 1 , x 2 (x 2 f for all (X, X) 2 F(X)=f Also affine and

. To find a unique biaffine R

X

for F (X)=f (X, X), function f such that,

and of course such a function R,

X all

should satisfy some addition property. It turns out that requiring f to be symmetric. The function f of two arguments is symmetric iff

o make , t 2 ,x 1 x ),for all 1 ,x 2 )=f(x 2 ,x 1 f(x

) symmetric simply form :

2 (and f 1 f )]/2 1 ,x 2 (x 2 )+f 2 ,x 1 (x 1 )=[f 2 ,x 1 f(x 2 +bx 1 bx )+ 1 x 2 )+ a(x 2 x 1 = [a(x +c+c]/2 ]/2+c. 2 +bx 1 )+ [bx 2 x 1 = a(x

This called the polar form of quadratic polynomial of F.

Given a polynomial of degree three as +cX+d.

2

+bX

3

F(X) =aX

The polar form of F is a symmetric affine function

lue that takes the same va A 3 f: A ; that is 3 , x 2 , x 1 x for all permutations of

) 3 , x 1 , x 2 )=f(x 3 , x 2 , x 1 f(x ) 1 , x 3 , x 2 )=f(x 2 , x 3 , x 1 =f(x ). 1 , x 2 , x 3 )=f(x 2 , x 1 , x 3 =f(x

Which is affine in each argument and such that , by R

X for all F (X)=f(X, X, X),

same way of second degree as + 2 x 1 x [ + 3 x 2 x 1 )=ax 3 , x 2 , x 1 f (x ]/3 +d. 3 +x 2 +x 1 +c[x 3 ]/ 3 x 2 +x 3 x 1 x

This called the polar form of cubic polynomial of F.

Example 1:

Consider the polynomial of degree two given by (t)=10t, 1 F 2t. -2 (t)= t 2 F d an =x (t) 1 F The polar forms of

are =y (t) 2 F ), 2 +t 1 )= 5(t 2 , t 1 (t 1 f ). 2 +t 1 (t -2 t 1 )=t 2 , t 1 (t 2 f polar form of is the ) 2 , t 1 (t 1 f Note that

is the polar form ) 2 , t 1 (t 2 f and =x (t), 1 F =y(t). 2 F of Example 2:

Consider a plane cubic which is defined as follows

(t)=30t,

1

(3)

3t. -3 (t)= 3t 2 F e ar = y (t) 2 F and = x (t) 1 F ar forms of pol The ), 3 +t 2 +t 1 )= 10(t 3 , t 2 , t 1 (t 1 f ). 3 +t 2 +t 1 (t -3 t 2 t 1 )= 3t 3 , t 2 , t 1 (t 2 f is the polar ) 3 , t 2 , t 1 (t 1 f Also notice that

is ) 3 , t 2 , t 1 (t 2 f and = x (t), 1 F form of, t). = y ( 2 F polar form of

3-The De Boor Modification of De Casteljau Algorithm

Consider one more generalization of the de Casteljau algorithm. This generalization will be useful when deal with spline, such a version will be called the progressive version for reasons that will become clear shortly when dealing with spline.

Definition [1], [2].

Consider control points in the form f(uk-2+i, uk-1+i, uk+i), 0

i

3, suppose

the degree three (m=3) where ui are

real numbers, k

Z), (where Z is integer number), taken from the sequence, {uk-2+i, uk-1+i , uk+i, uk+1+i,

uk+2+i uk+3+i }, of length (2m= 6)

satisfying certain inequality conditions. The sequence {uk-2+i, uk-1+i , uk+i, uk+1+i,

uk+2+i uk+3+i }, is said to be progressive

iff the inequalities indicated in the following array hold:

uk-2

uk-1

uk

uk+1 uk+2 uk+3 Is obtaining as following:- At stage 1 uk-2

uk+1, uk-1

uk+2, and uk

uk+3.

This corresponds to the inqualities on main descending diagonal of the array of inequality conditions.

At stage 2 uk-1

uk+1, uk

uk+2.This

corresponds to the inequalities on second descending diagonal of the array of inequality conditions. At stage 3 uk

uk+1.This corresponds on

third-lowest descending diagonal of the array of inequality conditions.

For example at k=3, and m=3. Consider control points in the form f(u1+i, u2+i,u3+i ),0i3, and suppose

ui taken from the sequence, {u1, u2, u3,

u4, u5, u6}, of length (2m= 6) satisfying

certain inequality conditions. The sequence {u1, u2, u3, u4, u5, u6}, is said

to be progressive iff the inequalities indicated in the following array hold: u1

u2

u3

u4 u5 u6 Is obtaining as following; At stage 1 u1

u4, u2

u5, u3

u6 At stage 2 u2

u4, u3

u5. At stage 3 u3

u4.

The four control points are:

f (u1, u2, u3), f(u2, u3, u4), f(u3, u4, u5 ),

f(u4, u5, u6). The points are obtained

from the sequence {u1, u2, u3, u4, u5,

u6}, by sliding a window of length 3

over the sequence from left to right, this explains the term ``progressive ‘‘. 4-De Boor Algorithm of Degree Three

From de Boor algorithm, the following cases will be analyzed: [1], [2].

Case: m=1

The progressive sequence is {u1, u2},

and the control points f (u1) and. f(u2).

Observe that these points are obtained from the sequence {u1, u2}, by sliding a

window of length 1 over the sequence from left to right. Number of stages is one.

Let us begin with straight lines. Given any on interval [u1, u2] for which

u1u2 for t R, can be written

uniquely at

t= [1- λ] u1, + λ u2 = u1+ λ [u2 -u1].

And can find that: λ = 1 2 1 u u u t   , 1- λ = 1 2 2 u u t u   .

These sequences turn out to define two de Boor control points for the curve segment F(t) associated with the interval [u1, u2], if f (t) is the polar

form of segment F (t) these de Boor points are the polar value.

f(t)=f[(1- λ)u1 + λ u2]

=(1- λ)f(u1) + λ f(u2)

(4)

F (t) =F [(1- λ) u1+ λ u2]

F (t) = (1- λ) F(u1) +λ F(u2).

De Boor algorithm uses two control points say F(u1) and F(u2). See fig.1.

Substitution λ = 1 2 1 u u u t   , 1- λ = 1 2 2 u u t u   . gives F(t)= 1 2 2 u u t u   f(u1)+ 1 2 1 u u u t   f(u2).

As said already every t belong to R can be expressed uniquely as a bray center combination of u1 and u2 say that

interpolation at t=u1 then

F (t)=f(u1), and at t=u2 then

F (t)=f(u2).

Case: m=3.

Table.1, fig.2, and inequalities in the

progressive array still hold The point f (t, t, t) is computed as

follows, see fig.2.

f(t, t, t)= f(t, t, (1-λ6) u3 + λ6 u4 ) = (1-λ6)f(t,t,u3)+λ6f(t,t,u4), (1) Where f(t, t, u3)=(1-λ4) f(t, u2, u3) +λ4 f(t, u3, u4), (2) f (t, t, u4) = (1-λ5) f(t, u3, u4) + λ5f (t, u4, u5), (3) and f(t, u2, u3)= (1-λ1)f(u1, u2, u3) + λ1 f(u2, u3, u4) (4) f(t, u3, u4)= (1-λ2)f(u2, u3, u4) +λ2 f(u3, u4, u5 ) (5) f(t, u4, u5 ) = (1-λ3)f(u3, u4, u5 ) +λ3 f(u4, u5, u6). (6)

Substitution of Eqs {2, 3, 4, 5,and6} in (1) gaves F(t)=f(t,t,t) =(1-λ6)(1-λ4)(1-λ1)f(u1, u2,u3) + [λ1(1-λ6)(1-λ4)+(1-λ2)(1-λ6)λ4 +(1-λ2)(1-λ5)λ6] f(u2, u3, u4) +[ λ2 λ4(1-λ6) + λ6 (1-λ5)λ2)+ λ5 λ6(1-λ3)] f(u3, u4, u5) + λ3λ5λ6 f(u4,u5,u6) . (7) Where λ1= 1 4 1 u u u t   ,1-λ1= 1 4 4 u u t u   λ2= 2 5 2 u u u t   ,1-λ2= 2 5 5

u

u

t

u

λ3= 3 6 3

u

u

u

t

,1-λ3= 3 6 6 u u t u   λ4= 2 4 2 u u u t   ,1-λ4= 2 4 4 u u t u   λ5= 3 5 3 u u u t   ,1-λ5= 3 5 5 u u t u   λ6= 3 4 3

u

u

u

t

,1-λ6= 3 4 4 u u t u   Substitute λ1,λ2 , λ3, λ4, λ5 , λ6 in Eq (7) gives F(t)=f(t,t,t)= { ) u u )( u u )( u u ( ] t u [ 3 4 2 4 1 4 3 4     } f(u1, u2, u3)] +{ ) u u )( u u )( u u ( ] t u ][ u t [ 3 4 2 4 1 4 2 4 1      + 2 5 5 u u t u   2 4 2 u u u t   3 4 4 u u t u   + ) u u )( u u )( u u ( ] u t [ ] t u [ 3 4 3 5 2 5 3 2 5      } f(u2,u3,u4) +{ ) u u )( u u )( u u ( ] t u [ ] u t [ 3 4 2 4 2 5 4 2 2      + 2 5 2 u u u t   3 5 5 u u t u   3 4 3 u u u t   + ) u u )( u u )( u u ( ] u t ][ t u [ 3 4 3 5 3 6 2 3 6      }f(u3,u4,u5) +{ ) u u )( u u )( u u ( ] u t [ 3 4 3 5 3 6 3 3     } f(u4,u5,u6) (8)

Which is a cubic polynomial in t? 5-Gallier Modified Cubic B-Spline Curves [1], [2].

For a modified cubic B-Spline, m=3, the sequence of (2m=6) consecutive knots:

(5)

[uk-m+1, uk- m+2, uk- m+3, uk- m+4, uk-m+5,

uk- m+6]

=[uk-2, uk-1 , uk, uk+1, uk+2, uk+3), which

yield 4 sequence of consecutive knots (uk-2+i, uk-1+i, uk+i), each of length 3

where 0 i 3.

These sequence turn out to define 4 de Boor control points for the curve segment Fk associated with the middle

interval [uk. uk+1], if fk is the polar form

of segment Fk these de Boor points are

the polar value.

Given a knot sequence { uk}, and a set

of de Boor control points dk, where dk

=f(uk+1, . ., uk+m) for every k such that

uk <uk+1. For every t

[uk ,uk+1] the

B-spline curve Fk (t) will take the

form defined by the following : Fk(t)=

j k , 1 m , j (t) B dj=

j k , 1 m , j (t) B f(uj+1, . ., uj+m),

where the B`s are to be defined later. The polar form fk(t1,…, tm) of Fk(t) is

fi(t…, t)=

j m 1 k , 1 m , j (t ,...,t ) b f(uj+1, . ., uj+m).

Where bj, m+1, k is the polar form of Bj, m+1, k. The polar form fk is influenced

by the m+1 de Boor control points bj

for j

[k-m, k]. The bj, m+1, k(t1,…, tm)

are computed from the recurrence relation :- bj, m+1, k(t1,…, tm) = j m j j m u u u t    bj,m,k(t1,…,tm-1) + 1 j 1 m j m 1 m j u u t u        bj+1, m, k(t1,…, tm-1), (9) Where bj,m+1,k( )=j,k, (10) and , k , j  =1 iff j=k, and , ,k j  =0 otherwise, , k , j

 is called the Kronecker delta. Putting all tj=t, and drop the subscript

k, that get the standard recurrence

relation defining the B-splines [de Boor, and Cox 78]. [3], [4].

Let Bj,1,(t)= otherwise u u t if j j 0 , [ 1  1 . Now Bj, m+1(t)= j m j j u u u t    Bj, m(t)+ 1 1 1        j m j m j u u t u Bj+1, m(t).

As a special case, the previous work will be calculated for cubic spline where m=3 corresponding to the interval (u3, u4), {t

[u3, u4]} where k=3 and j

[0, 3].Now f3 (t1, t2, t3) = b0, 4, 3 (t1, t2, t3) d0 +b1, 4, 3(t1, t2, t3) d1+ b2, 4, 3 (t1, t2, t3) d2 +b3,4,3(t1,t2,t3)d3. (11) For j=0 b0, 4, 3 (t1, t2, t3)= 0 3 0 3 u u u t   b0, 3, 3 (t1, t2 ) + 1 4 3 4 u u t u   b1, 3, 3 (t1, t2 ).

From (9) and (10) b0, 3, 3 (t1, t2) =0, and

b1, 3, 3 (t1, t2 )= 1 3 1 2 u u u t   b1, 2, 3 (t1 ) + 2 4 2 4 u u t u   b2, 2, 3(t1), Where b1, 2, 3 (t1 )=0, and b2, 2, 3(t1) = 1 3 2 1 u u u t   b2, 1, 3 ( ) + 3 4 1 4 u u t u   b3, 1, 3( ). Where b2, 1, 3 ( )=0, and b3, 1, 3( )=1.

Also from (9) and (10): b2, 1, 3 ( )=0, b3, 1, 3( )=1. b2, 2, 3(t1) = 3 4 1 4 u u t u   b1,3,3(t1,t2)= 2 4 2 4 u u t u   3 4 1 4 u u t u  

(6)

Henceb0,4,3(t1,t2,t3)= 1 4 3 4 u u t u   2 4 2 4 u u t u   3 4 1 4 u u t u   . If tj=t, then b0,4,3(t1,t2,t3)= ) u u )( u u )( u u ( ] t u [ 3 4 2 4 1 4 3 4     . (12) At j=1 b1, 4, 3 (t1, t2, t3)= 1 4 1 3 u u u t   b1, 3, 3 (t1, t2 ) + 2 5 3 5 u u t u   b2, 3, 3(t1, t2 ), b2, 3, 3(t1, t2 )= 2 4 2 2 u u u t   b2, 2, 3 (t1) + 3 5 2 5 u u t u   b3, 2, 3(t1 ), Where b3, 2, 3(t1 )= 3 4 3 1 u u u t   b3, 1, 3 ( ) +0 = 3 4 3 1 u u u t   b2,3,3(t1,t2)= 2 4 2 2 u u u t   3 4 1 4 u u t u   + 3 5 2 5 u u t u   3 4 3 1 u u u t   b1, 4, 3 (t1, t2, t3)= 1 4 1 3 u u u t   2 4 2 4 u u t u   3 4 1 4 u u t u   + 2 5 3 5 u u t u   2 4 2 2 u u u t   3 4 1 4 u u t u   + 2 5 3 5 u u t u   2 4 2 2 u u u t   3 4 1 4 u u t u   + 2 5 3 5 u u t u   3 5 2 5 u u t u   3 4 3 1 u u u t   . If tj=t, then b1,4,3(t,t,t)= ) u u )( u u )( u u ( ] t u ][ u t [ 3 4 2 4 1 4 2 4 1      + 2 5 5 u u t u   2 4 2 u u u t   3 4 4 u u t u   + ) u u )( u u )( u u ( ] u t [ ] t u [ 3 4 3 5 2 5 3 2 5      . (13) At j=2 b2, 4, 3 (t1, t2, t3)= 2 5 2 3 u u u t   b2, 3, 3 (t1, t2 ) + 3 6 3 6 u u t u   b3, 3, 3(t1, t2 ). Where b3, 3, 3(t1, t2 )= 3 5 3 2 u u u t   b 3, 2, 3 (t1 ) +0 = 3 5 3 2 u u u t   3 4 3 1 u u u t  

b2, 4,3(t1,t2,t3)= 2 5 2 3 u u u t   2 4 2 2 u u u t   3 4 1 4 u u t u   + 2 5 2 3 u u u t   3 5 2 5 u u t u   3 4 3 1 u u u t   + 3 6 3 6 u u t u   3 5 3 2 u u u t   3 4 3 1 u u u t   . If tj=t, then b2,4,3(t,t,t)= ) u u )( u u )( u u ( ] t u [ ] u t [ 3 4 2 4 2 5 4 2 2      + 2 5 2 u u u t   3 5 5 u u t u   3 4 3 u u u t   ) u u )( u u )( u u ( ] u t ][ t u [ 3 4 3 5 3 6 2 3 6      . (14) At j=3 b3, 4, 3 (t1, t2, t3) = 3 6 3 3 u u u t   b3, 3, 3 (t1, t2 ) +0

b3,4,3(t1,t2,t3)= 3 6 3 3 u u u t   3 5 3 2 u u u t   3 4 3 1 u u u t   If tj=t, then

b3,4,3(t,t,t)= ) u u )( u u )( u u ( ] u t [ 3 4 3 5 3 6 3 3     (15) Substituting (12), (13), (14) and (15) in (11) gives: -

(7)

Fk (t)= { ) u u )( u u )( u u ( ] t u [ 3 4 2 4 1 4 3 4     } d0 + { ) u u )( u u )( u u ( ] t u ][ u t [ 3 4 2 4 1 4 2 4 1      + 2 5 5 u u t u   2 4 2 u u u t   3 4 4 u u t u   + ) u u )( u u )( u u ( ] u t [ ] t u [ 3 4 3 5 2 5 3 2 5      } d1 +{ ) u u )( u u )( u u ( ] t u [ ] u t [ 3 4 2 4 2 5 4 2 2      + 2 5 2 u u u t   3 5 5 u u t u   3 4 3 u u u t   + ) u u )( u u )( u u ( ] u t ][ t u [ 3 4 3 5 3 6 2 3 6      }d2 +{ ) )( )( ( ] [ 3 4 3 5 3 6 3 3 u u u u u u u t     }d3 (16)

The Eq (16) is called a cubic B-Spline. In the case k=0 then t

[u0,u1] and

(u1, u2 , u3, u4, u5, u6)=(u-2, u-1 u0, u1

u2, u3).

For the special case k=0, let (u-2, u-1 u0,

u1 u2, u3)=(-2, -1, 0, 1, 2, 3), then t

[0, 1], and t1=t2=t3 =t. and(16) becomes: ) 17 ( 6 1 } 1 3 3 3 { 6 1 } 4 6 3 { 6 1 ) 1 ( 6 1 ) ( 3 3 2 2 3 1 2 3 0 3 0 b t b t t t b t t b t t F           

Eq (17) called original B-Spline curve dependent on interval [0, 1]. [1], [2], [3]. [4], [5], [6], [7]. [8].

6-Developed Cubic B-Spline Curves To construct the new cubic B-Spline. Take the case m=3. The sequence [2m=6] consecutive knots

[uk-m+1, uk- m+2, uk- m+3, uk- m+4, uk-m+5,

uk- m+6]

=[uk-2, uk-1 , uk, uk+1, uk+2, uk+3], yields

4 sequences of consecutive knots ( u k-2+i, uk-1+i, uk+i), each of length 3 where

0 i 3, and these sequences turn

out to define 4 de Boor control points for the curve segment fk associated

with the middle interval [ uk . uk+1]. fk

is the polar form of segment Fk. Then

the de Boor control points dk+i =fi(u k-2+i, uk-1+i, uk+i), where i= 0, 1, 2, 3, are

given by:

dk =f0(uk-2, uk-1, uk) at i=0

dk+1 =f1(uk-1, uk, uk+1) at i=1

dk+2 =f2(uk, uk+1, uk+2) at i=2

dk+3 =f3(uk+1, uk+2, uk+3) at i=3.

Observe that these points are obtained from the sequence

{uk-2, uk-1 , uk, uk+1, uk+2, uk+3}, by

using the new de Boor algorithm for calculating f (t, t, t) at each value of t where uktuk1 is given in Table 2 below.

From stage 3, f(t, t, t6) is given by :

f(t, t, t3)= (1-λ6)f(t, t2, uk)

+λ6f(t, t2, uk+1) (18)

From stage 2, f(t, t2, uk) and f(t, t5,

uk+1) is given by: f(t, t2, uk)=(1-λ4f(t1, uk-1, uk) +λ4f(t1, uk, uk+1), (19) f(t, t2,uk+1)= (1-λ5)f(t1, uk, uk+1) + λ5 f(t1, uk+1, uk+2). (20) From stage 1, f(t1, uk-1 ,uk), f(t2, uk

.uk+1), and f(t3, uk+1,uk+2)are given by:

f(t1, uk-1, uk)= (1-λ1) f(uk-2, uk-1, uk) + λ1 f(uk-1, uk, uk+1 ), (21) f(t1, uk,uk+1) = (1-λ2)f(uk-1, uk, uk+1), +λ2 f(uk, uk+1, uk+2) (22) f(t3, uk+1,uk+2) = (1-λ3) f(uk, uk+1, uk+2) +λ3f(uk+1, uk+2, uk+3). (23) Substitution of Eqs {19, 20, 21, 22, and 23} in (18) gives Fk=fk(t1, t2, t3)=(1-λ6)(1-λ4)(1-λ1) [ f(uk-2, uk-1, uk)] +{(1-λ4)(1-λ6)λ1+(1-λ2)(1-λ6) λ4 +(1-λ2)(1-λ5) λ6} f(uk-1, uk, uk+1) +{λ2λ4(1-λ6)+λ6(1-λ5)λ2 +(1-λ3)λ5λ6}f(uk,uk+1, uk+2) + λ3λ5 λ6 f(uk+1, uk+2, uk+3). (24) Suppose f( uk-2, uk-1, uk)], f( uk-1, uk, uk+1), f(uk,uk+1, uk+2), f(uk,uk+1, uk+2)=

d0,d1 ,d2 ,d3 are control points and

(8)

Fk=fk(t1,t2,t3)=(1-λ6)(1-λ4)(1-λ1) d0

+{(1-λ4)(1-λ61+(1-λ2)(1-λ6) λ4+(1-λ2)(1-λ5)

λ6}d1+{λ2λ4(1-λ6)+λ6(1-λ52

+(1-λ35λ6}d23λ5λ6d3. (25)

Eq (25) thé formula of a new cubic B-Spline.

Treat the coordinates of each point as a two-component vector and using the symbols d0, d1, d2 and d3 for control

points. Let as given as, [5], [6], [10]. [11]. di=(xi, yi) for i=0,1,…,m, and di=           i i y x , The set of points, in parametric form is d (t)=           ) t ( y ) t ( x ,uktuk1 Where λ1= 2 k 1 k 2 k u u u t      ,1-λ1= 2 k 1 k 1 k u u t u      , λ2 = 1 k 2 k 1 k u u u t      ,1-λ2= 1 k 2 k 2 k u u t u      , λ3 = k k k

u

u

u

t

3 , 1-λ3 = k k k u u t u     3 3 , λ4= 1 k 1 k 1 k u u u t      , 1-λ4 = 1 1 1      k k k u u t u , λ5 = k k k u u u t   2 , 1-λ5= k k k u u t u     2 2 , λ6 = k k k u u u t   1 , 1-λ6= k 1 k 1 k u u t u     . The formula of a new equation of

cubic B-Spline in (25) becomes Fk(t)= { ) u u )( u u )( u u ( ] t u [ k 1 k 1 k 1 k 2 k 1 k 3 1 k           } d0+{ ) u u )( u u )( u u ( ] t u ][ u t [ 2 k 1 k 1 k 1 k k 1 k 2 1 k 2 k             + ) u u )( u u )( u u ( ) u t )( t u )( t u ( 1 k 1 k 1 k 2 k k 1 k 1 k 1 k 2 k               + ) u u )( u u )( u u ( ] u t [ ] t u [ 1 k 2 k k 2 k k 1 k k 2 2 k           } d1+ { ) u u )( u u )( u u ( ] t u [ ] u t [ 1 k 2 k 1 k 1 k k 1 k 1 k 2 1 k             + k k k u u u t   1 k k k u u t u     2 2 1 2 1      k k k u u u t + ) )( )( ( ] ][ [ 3 2 1 2 3 k k k k k k k k u u u u u u u t t u          } d2 +{ ) u u )( u u )( u u ( ] u t [ k 3 k k 2 k k 1 k 3 k        } d3. (26)

For the case k=3 then t

[u3 ,u4]

Fk (t)= { ) u u )( u u )( u u ( ] t u [ 3 4 2 4 1 4 3 4     } d0 + { ) u u )( u u )( u u ( ] t u ][ u t [ 3 4 2 4 1 4 2 4 1      + 2 5 5 u u t u   2 4 2 u u u t   3 4 4 u u t u   + ) u u )( u u )( u u ( ] u t [ ] t u [ 3 4 3 5 2 5 3 2 5      } d1 +{ ) u u )( u u )( u u ( ] t u [ ] u t [ 3 4 2 4 2 5 4 2 2      + 2 5 2 u u u t   3 5 5 u u t u   3 4 3 u u u t   + ) u u )( u u )( u u ( ] u t ][ t u [ 3 4 3 5 3 6 2 3 6      } d2+ { ) u u )( u u )( u u ( ] u t [ 3 4 3 5 3 6 3 3     }d3.(27)

The Eq (27) is identical with Eq (16) In the case k=0 then t

[u0 ,u1],and

(uk-2, uk-1 , uk, uk+1, uk+2, uk+3)=(u-2, u-1

(9)

For the special case k=0, let (u-2, u-1 u0, u1 u2, u3)=(-2, -1, 0, 1, 2, 3), then t

[0, 1], and t1=t2=t3 =t. and (27) becomes: ) 28 ( 6 1 } 1 3 3 3 { 6 1 } 4 6 3 { 6 1 ) 1 ( 6 1 ) ( 3 3 2 2 3 1 2 3 0 3 0 d t d t t t d t t d t t F           

The Eq (28) is identical with Eq (17) To explain the above new formula of B-Spline curve (25), the following example is given

Example: -

Given the following control points: d0=(x0, y0) = 100,300, d1=(x1, y1) = 100, 50, d2=(x2, y2) = 300, 50, d3=(x3, y3) = 300,300, d4=(x4, y4) = 100,300, d5=(x5, y5) = 100, 50, d6=(x6, y6) = 300, 50,

In the case k=0 then t

[u0 ,u1],and

(uk-2, uk-1 , uk, uk+1, uk+2, uk+3)=(u-2, u-1

u0, u1 u2, u3).

For the special case k=0, let (u-2, u-1 u0,

u1 u2, u3) =(-2, -1, 0, 1, 2, 3), then

t

[0,1].

The following cases will be studied Case 1:

Taking the special case uk =u0 =0, and

uk+1 = u1=1, and t1=t2=t3 =t. where

t

[0,1], then Eq ( 25), reduces to original, Eq(17). The change of the curve take only when change the control points. See fig.3.

Case 2:

The parameter (+λ1) is taken to be

increased with step different from that of the parameter t in piecewise or in all piecewise is starting with t= uk and

ending with t= uk+1. The value of λ1

(i.e. t1) is taken according to the desire

of the designer when he wants the design to be changed in exterior manner. This can be seen in fig. 4 the changes took place with no change among the control points.

Case 3:

The parameter (-λ1) is taken to be

decreased with step different from that of the parameter t in piecewise or in all piecewise is starting with t= uk and

ending with t= uk+1. The value of -λ1

(i.e. t1) is taken according to the desire

of the designer when he wants the design to be changed in interior manner. This can be seen in fig. 5. The changes took place with no change among the control points. Case 4:

(1-λ1) is taken to be varied with step,

say h. In this case it is found that the design can be moved upward with no need to change any of the control points. See fig. 6.

Case 5:

The parameter - (1-λ1) is taken to be

decreased with step different from that of the parameter t is starting with t= uk

and ending with t= uk+1. The value of

–(1-λ1) (i.e. t1) is taken according to

the desire of the designer when he wants the design to be changed in interior manner. This

can be seen in fig. 7. The changes took place with no change among the control points.

{Eq (25) is built on new mathematical procedure. A procedure that can be developed by mathematicians and designers in the future to give other new properties}.

Case 6:

The parameter (+λ1) is taken to be

increased with step different from that of the parameter t in all piecewise is starting with t= uk and ending with t=

uk+1. The value of λ1 (i.e. t1) is taken

according to the desire of the designer when he wants the design to be changed in exterior manner. This can be seen in fig. 8. The changes took place with no change among the control points.

Case 7:

The parameter (-λ1) is taken to be

(10)

of the parameter t in all piecewise is starting with t= uk and ending with t=

uk+1. The value of (-λ1) (i.e. t1) is taken

according to the desire of the designer when he wants the design to be changed in interior manner. This can be seen in fig. 9. The changes took place with no change among the control points

7-Conclusions

In this work conclude the following points:

1-The developed B-Spline equation is based on a mathematical procedure depending on the linear construction of polynomials and following

de-Casteljau and de Boor algorithms. This led to a general procedure that can be used easily.

2-A constriction of a modified formula for B-Spline curve has been achieved through a procedure following de-Boor algorithm. The procedure has been developed in a sequential and mathematical way as it is obvious in formula (25). It has the following advantages:

a-The modified linear mathematical construction of the equation gives the Designer move choice to reach and modify any segment of the design. b-The modified formula works on much more flexible real values of the parameter t, that is on a sequence of the form …,u0 , u1, u2, …, rather than

the special familiar frame [0, 1]. c-The designer has advantage of cotvolnj and modifying all or part of the design through the values of the parameter t without changing any of the control points.

8-Reference

[1] Gallier Jean "Curves and Surfaces in Geometric Modeling Theory and

Algorithms," Morgan Kaufmann publishers. 2000.

[2] Jaber A. M "Modified Curves Mathematical Models." Ph D thesis. University of Technology. 2005. [3] Faux I D "Computational Geometry for Design and manufactured," Ellis Hood ltd. 1983.

[4 ] Manning J .R" Continuity Conditions for Spline Curves," Computer J. Vol. 17, No. 2, 1974, pp. 181-186.

[5 ] Goodman T .N" Properties of B- Spline," J. Approx. Theory J. Vol. 44, No. 2, June 1985, pp. 132-153.

[6] Lengyel E "Mathematics for 3D Gage Programming and Commuter Graphics," Charles River Medal. Inc. 2004.

[7] Rice J.R. "Numerical Methods Software. And Analysis," Computer Aided Geometric Design. 1985.

[8] Gerald C. F and Wheatley P. O. "Applied Numerical Analysis," Addison Wesly. 1999.

[9] Hill F. S, Jr "Computer Graphics Using Open GL," Prentice Hall. 2001. [10] Buss S. R. "3-D Computer Graphics A Mathematical Introduction with Open GL," Published in Print Fomat. 2003.

[11] Alan W ``3D Computer

Graphics``, Addison Wesley Company, Inc.2000.

(11)

References

Related documents

Until this point, the evaluation focused on our main goal: to show that reflective capabilities at the VM level are useful for handling unanticipated software adaptation. However,

A laboratory-scaled experiment was conducted to test the bioremediation potential of agro based mixed culture (ABMC) for industrial effluents.. Different variables

hydrodynamic model necessary for interpretation of results of their spectral analysis in terms of geophysical hydrodynamics. one horizon), taking into account the

New titles recognized in the content library are classified in the line item “Additions to streaming content library” within net cash provided by operating activities in

COIJ2WJCL cqflCauOIf qicu qic cocwcfcuI ot ipie AuUPLC porqq pc boaipAc AC9I2 2IJCC waiqac.. W0 CXbO2Cq 10 CUCLJ COU2IIUICL Cqnc9fiou wuq9ce' LonpA 44 bctecur MCLC.. AVUVJC i#c

Phaco 2015 Capsulorhexis - Curved/Sharp Capsulorhexis - Straight/Sharp Capsulorhexis - X-Action/Curved Capsulorhexis - X-Action/Curved/Sharp Capsulorhexis - Curved Capsulorhexis

Source: Nosy Gamer Blog - http://bit.ly/14VOWcY... Credit

For each economy the ranking is calculated as the simple average of the percentile rankings on each of the 10 topics included in the index in Doing Business 2013: