Научная статья на тему 'Использование кусочно-кубических функций для построения кривой типа Безье гладкости C1'

Использование кусочно-кубических функций для построения кривой типа Безье гладкости C1 Текст научной статьи по специальности «Математика»

CC BY
60
7
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
СПЛАЙНОВАЯ КРИВАЯ ТРЕТЬЕЙ СТЕПЕНИ / КРИВАЯ БЕЗЬЕ / ПАРАМЕТРЫ ФОРМЫ КРИВОЙ / SPLINE CURVE OF THIRD DEGREE / BEZIER CURVE / SHAPEPARAMETERS OF CURVE

Аннотация научной статьи по математике, автор научной работы — Stelia O., Potapenko L., Sirenko I.

Исследуются кусочно-полиномиальные кривые третьей степени. Вводится последовательность точек, рассматриваемых как управляющие, а соединяющие их отрезки являются касательными к кривой. Построена система уравнений для вычисления коэффициентов кривой и найдены условия ее единственности. На примерах расчетов показаны хорошие аппроксимационные свойства полученной кривой и проиллюстрирована возможность локального изменения ее формы в зависимости от параметров

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Application of piecewisecubic functions for constructing a Bezier type curve of C1 smoothness

We have proposed and implemented a new method for constructing a spline curve of third degree, which possesses the properties of both a cubic spline and the Bezier curve. Similar to building the Bezier curves, control points are assigned, whose position affects the shape of the curve. In the proposed approach, the sections of the straight line that connect control points are tangent to the curve that is constructed. The location of touch points can be different, allowing the construction of different curves for one set of control points. A special feature of the proposed method is assigning, in abscissa of control points, some unknown spline values that are found from conditions for the continuity of the first derivatives of the curve at these points. Finding the coefficients of polynomials that make up the curve comes down to solving a system of linear equations with a three-diagonal matrix. The built curve is a piecewise-cubic function, continuous along with its first derivative throughout the entire interval. Conditions were found for any set of control points in the form of inequalities, which parameters of the curve must meet, at which the curve does exists and it is unique. These conditions follow from the requirement for a diagonal advantage of the matrix of the system for determining coefficients of the curve. A series of computational experiments were performed, which showed that the curve effectively inherits the shape assigned by control points. Similar to the Bezier curves, the proposed curve could be used in computer graphics systems and computer systems for technical design, specifically for the creation of fonts, drawings of parts, elements of transportation vehicles' bodies, etc.

Текст научной работы на тему «Использование кусочно-кубических функций для построения кривой типа Безье гладкости C1»

15. Bellman R. E., Zadeh L. A. Decision-Making in a Fuzzy Environment // Management Science. 1970. Vol. 17, Issue 4. P. B-141-B-164. doi: 10.1287/mnsc.17.4.b141

16. Raskin L. G., Seraya O. V. Nechetkaya matematika. Kharkiv: Parus, 2008. 352 p.

17. Kaufman A., Gupta M. Introduction to Fuzzy Arithmetic: Theory and Applications. New York: VN. Reinhold, 1985. 351 p.

18. Liu B., Liu Y.-K. Expected value of fuzzy variable and fuzzy expected value models // IEEE Transactions on Fuzzy Systems. 2002. Vol. 10, Issue 4. P. 445-450. doi: 10.1109/tfuzz.2002.800692

19. Pawlak Z. Rough sets // International Journal of Computer & Information Sciences. 1982. Vol. 11, Issue 5. P. 341-356. doi: 10.1007/ bf01001956

20. Raskin L., Sira O. Fuzzy models of rough mathematics // Eastern-European Journal of Enterprise Technologies. 2016. Vol. 6, Issue 4 (84). P. 53-60. doi: 10.15587/1729-4061.2016.86739

21. Raskin L., Sira O. Method of solving fuzzy problems of mathematical programming // Eastern-European Journal of Enterprise Technologies. 2016. Vol. 5, Issue 4 (83). P. 23-28. doi: 10.15587/1729-4061.2016.81292

Дослгджуються кусково-полiномiальнi кривi тре-тього степеня. Вводиться послгдовтсть точок, як розглядаються як керуючi, а з'eднуючi гх вiдрiз-ки е дотичними до кривог. Побудовано систему рiв-нянь для обчислення коефiцieнтiв кривог та знайдено умови гг eдиностi. На прикладах розрахунтв показано хорошi апроксимацшт властивостi одержаног кривог та прошюстрована можлив^ть локальног змти гг форми в залежностi вгд параметрiв

Ключовi слова: сплайнова крива третього степеня, крива Без'е, параметри форми кривог

□-□

Исследуются кусочно-полиномиальные кривые третьей степени. Вводится последовательность точек, рассматриваемых как управляющие, а соединяющие их отрезки являются касательными к кривой. Построена система уравнений для вычисления коэффициентов кривой и найдены условия ее единственности. На примерах расчетов показаны хорошие аппроксимационные свойства полученной кривой и проиллюстрирована возможность локального изменения ее формы в зависимости от параметров

Ключевые слова: сплайновая кривая третьей степени, кривая Безье, параметры формы кривой

UDC 519.6:517.51

|DOI: 10.15587/1729-4061.2018.128284]

APPLICATION OF PIECEWISE-CUBIC FUNCTIONS FOR CONSTRUCTING A BEZIER TYPE CURVE OF C1 SMOOTHNESS

O. Stelia

PhD, Associate Professor, Senior Researcher* E-mail: oleg.stelya@gmail.com L. Potapenko PhD*

E-mail: lpotapenko@ukr.net I. S i r e n k o *

E-mail: i.sirenko@gmail.com *Laboratory of the Computational Methods in the Mechanics of Continuous Media Тaras Shevchenko National University of Kyiv Volodymyrska str., 60, Kyiv, Ukraine, 01033

1. Introduction

Interpolation and approximation of numerical sets of data is a relevant task in applied mathematics because of a widespread application in various fields of science and technology. Among the various areas of research, there are two that stand out - the interpolation using polynomial splines, which solves a problem on the construction of curves that pass through the set points, and methods for constructing Bezier curves for which set points are the control points. It is understood in the sense that a curve does not pass through these points but approaches them, changing in so doing its shape depending on their location. At present, researchers chose to combine these two approaches. That makes it possible to obtain rather smooth curves and efficient algorithms for their construction with the possibility of interactive control over the shape of the curves using control points.

2. Literature review and problem statement

A method for constructing curves, which are called the Bezier curves, was developed independently by engineers Pierre Bezier, who worked for the automotive company Renault (Headquarters in the city of Boulogne-Billancourt, France), and Paul de Castillo, who was an employee of the automobile company Citroen (Headquarters in Paris, France) [1]. They proposed to apply these curves to design automobile bodies. A widespread use of Bezier curves for the problems on approximation is associated with convenience in both the analytical description and the visual geometrical construction. Employing the Bezier curves in computer graphics systems allows the user to move control points using a cursor on the screen to interactively change the shape of the curve [2]. This is a handy tool used in various areas of technical design.

©

The basis of the Bezier curves is equivalent to the basis formed by the Bernstein polynomials [3]. In this case, the order of a polynomial is one unity less than the number of control points. Given the global character of the Bernstein basis, a change in the location of control points results in a change of the entire curve.

A detailed description of Bezier curves with many examples is given in paper [4]. Article [5] proposes a new approach to building the Bezier curves with a preset smoothness. To overcome these constraints, the B-splines are employed [6]. The built curve resides inside the convex shell of the defining polygon.

The combination of Bezier curves with a procedure for building a spline yielded significant possibilities to the development of spline curves. A comparison between the Bezier curve and methods for interpolation using the Her-mitian splines is given in paper [7]. Manipulating control points makes it possible to customize the interpolation spline to the shape of the curve selected by a designer. Paper [8] studied the criteria for choosing the "best" spline to achieve a G2-smoothness of the entire curve. The structure of spline is introduced with additional parameters for retaining the universality and good approximating properties of splines in terms of engineering applications.

Paper [9] presented techniques for obtaining piece-wise-quadratic polynomial curves with four control points for each segment of the curve and local parameters of the shape. Introducing additional parameters to the basis is a convenient way to adjust shape of the curves. Numerical and geometrical effects caused by a change in the shape parameters are investigated in [10]. [11] shows the way the shape of the curve changes locally depending on values for the parameters of the shape, which are included in the basis.

In order to represent conical curves, as well as certain transcendental curves, it is more appropriate to use trigonometric functions as the basis functions of the B-spline curve. In this case, the introduction of parameters to basis functions also provides additional possibilities to adjust the shape of the curve. Authors of [12] employ a trigonometric basis that contains parameters of the shape to represent an ellipse. Article [13] reported building a new type of splines, which are called quadratic irregular algebraic trigonometric B-splines with several shape parameters, and which make it possible to globally or locally adjust the shape of the curves. Paper [14] studied the dependence of geometrical properties of the proposed cubic trigonometric curves and the Bezier surfaces on the shape parameters. Authors of [15] also considered cubic trigonometric basis functions of a spline with a local parameter of the shape. Thus, the introduction of parameters makes it possible to build a class of functions among which one can choose the one that is most suitable for a given data set.

At the same time, the inclusion of shape parameters into a basis, although allows a local change in the shape of the curve, however, has its drawbacks. The popularity of the idea of Bezier curves is explained by that using control points the user can interactively choose the shape of the curve, while introduction of parameters to the basis does not provide for such an opportunity. The smoothness of the curve can also depend on the values of parameters. Thus, for example, authors in [11] achieve, at the points where individual segments of the curve are joined, in the general case, only a smoothness of G1, while a smoothness of C1 is displayed by the curve only when parameters accept zero values.

Paper [16] outlines methods that are used in computer graphics. Specifically, it describes the OpenGL software package, which is widely applied currently in most computer systems. The package has features that make it possible to work effectively with the Bezier splines, B-splines, and other spline curves. [17] deals with the use of curves and surfaces in geometrical modeling, the algorithmic processing of Bezier curves and spline curves is also considered. A mathematical theory of the basic methods of computer graphics is generalized in [18]; the authors examined the application of Bezier splines, B-splines, and generalized cubic splines for the systems of computer graphics. Methods for modeling curves and surfaces, used in the related fields of geometric modeling, computer geometric design and computer graphics, are described in [19].

Thus, it is a promising task to develop efficient algorithms for constructing piecewise-polynomial curves with smoothness C1 with an interactive possibility to change the shape of the curve using control points and shape parameters of the curve.

3. The aim and objectives of the study

The aim of present study is to develop and substantiate, by using piecewise-cubic polynomials, a method for constructing a spline curve, which would retain such important properties of Bezier curves as the inheritance of the shape, which is assigned by control points, the possibility of interactive control over the shape of the curve by using these points and a local control over the shape of the curve applying shape parameters at total smoothness C1. This would make it possible to extend the functional toolset of computer graphics systems in terms of interactive influence, including local, on the shape of the curve.

To accomplish the aim, the following tasks have been set:

- to build a system of equations to calculate coefficients of the curve with preset properties;

- to find conditions for the existence and uniqueness of the curve to be built;

- to illustrate, drawing examples, the approximating properties of the built curve and the possibility for a local change in its shape depending on parameters.

4. Method for constructing a curve and conditions for its existence and uniqueness

In order to develop a method for constructing a spline curve with preset properties, we shall employ the approach that was developed for the construction of a parabolic spline [20] and further developed for non-uniform grids [21].

Let us consider a certain interval [a, b] in which we determine partitioning

AT: a = t1 < t2 <... < tn = b.

In knots Ti, we set the value Fi (control points). Along with partitioning AT, we introduce partitioning

Ax ■ t1 = x1 <x2 < ... < XN+1 = TN,

where xi-i<xi<xi , ¿=2,..., N. Values of a certain function at points Xi are denoted by /¿.

obtain:

We introduce notation hi=тi-x,^, u,=t,—x,. . , x, -t, , x, -X;1

S (x ) = ^ -,-,---,-—--

Then x;-i;4=h;-|j;. With respect to these notations, we ' (T.1-x. )(Tl-T. ) (T-x. )(T-T. 4)

= [F,-i(h,-u) + F^], f = (F, -F,-i).

f (x, xi)++(xi T ; + x-T)(x-T-i) = F-hF-, (x -T )(x -T h

\ I I I 1-1 J ,

(7)

S '( x,+i) =

We shall build a spline curve of third degree S(x), v M' -x 4)(T.-T.+i ) (T+i^+i)(T+i )

a<x<b, for which points T' will be the knots of the spline,

(x,+i-T,) + (x,+i -t,+i)

F.,-F

while points xi will be multiple knots of the interpolation. +/. 1 ———' v '+1-—+q2(x.+1 - t . )(x.+1 - t + -) = —+-k (8)

We shall construct a cubic spline of defect 2 in the interval [a, b] that meets the following conditions

(x,+i -T,)(x,+i -t,+i)

S ( x, ) = f,

S'(x, ) = f, i = 2N.

Using the above notations for steps hi and we ob-(1) tain:

(2)

S ( x) = ^i_i

(x-x,)(x-T,) : A (x-x,)(x-t,-i)

(t,-i- x, )(t,-i - T,) ; (T,- x,)(T, - t,-i)

+f (x T)(x Ti_i> +Qi(x-T,)(x-T,_i)(x-x,) (x -T-)(x -T- . )

for Ti-i<xi<Ti,

( x - x,+i)(x - T,+i ; , , (x - x,+i)( x - T,)

S ( x) =

(T, -x,+i)(t, -t,+i) ,+ (t,+i -x,+i)(t,+i-T,)

S,( x ) = ^-1

(t i-l^-¿)(-(i-l ^

(x-x,)+(x-t,-i) + f( x ~ + ) + ( x ~ t]-i; _ J,

S '( x ) =

(t,-x,+i)(tt(+i;

U,

Denote through 4', i=1,... , N the unknown values of the function in the knots of spline ti.

To construct the spline, we record the Hermitian interpolation polynomial [22] of third degree in each of the intervals [xi_1, ti], i=2,..., N-1,

'(h, -u, )h,

h -u.

I j_Z

h - 2u F - F

-f h ,2u-Qi(h-u)u=,

hence

(9)

(h -u,)2h, '

h - 2u, F - FM

(3)

- f

(i0)

In equation (9), we increase the index by 1 and find an expression for Q2.

U,+i

+ Q2 (x-T, )( x -T,+i)(x -x,+i) (4)

for Xi<Xi<Xi+l.

It is obvious from equalities (3), (4) that condition (1) is met. To determine magnitudes Q1 and Q2, we shall employ condition (2), that is, the following relationships must be performed:

s\xt )=f, s\xi+l) = f;+l.

Consider S'(x) for t-1<xi<xi

(x-xl)+(x--l) )

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

' (h,+i -Uj+l)hj+

. h,+i -U,+i hj+lUj+l

-f+

F, - F

02 =-*

h,+l_2U,+'__Q (h -u )u = ^^_Ü.

(h,+i -Uj+l)Uj+l h,+i

l . l

(ll)

(h,+i -u,+i) h,+i h,+i- 2u ,+i

,+l h,+iU2+i

F,+i - F,

(h,+i -u,+i)2 uL h,+iu,+i (h,+i -u,+i)

(l2)

To ensure the smoothness of the obtained curve, that is the continuity of the first derivative, we demand that relationship S '(t ' -0)=S'(t ' + 0) should be met, where

(T,- x,)(T, - t,-i; (x, - T,)(x, - T,-i ) +Qi {( x-x, )[(x - t, ) + ( x - T,_i)] + (x - t, )( x - T,_i)}. (5)

Consider by analogy S'(x) for тi<xi<тi+1

(x-x,+i) + (x-T,+i) ,

S '(T,-0 ) = U,-' h + u

(h, -lhj)hh^ h

hjUj , (h,

2h,+i -u,+i

ßlUjhj,

(13)

(x-x,+1)+(x-T,) (x-ti)+(x-t,+1) ,+1 (t,+1- x,+1 )(t,+1- T,; ,+1 ( x,+1- T, )(x,+1- t,+1 ) +q2 {( x - x,+i; [( x - T, ) + (x - t,+1+ (x - T, )(x - t,+1 )}. (6)

S '(t, + 0) = -

+f+

' (h,+i -Uj+l)hj+

. h,+i -u,+i

hj+lUj+l

(h}+i -Uj+l)Uj-

q2 (h,+1 -uj+1)hj+1 .

(i4)

Equating expressions (13) and (14) and substituting values Qi and Q2, we obtain a system of linear algebraic Determine the derivatives, found above, at points x. equations with a three-diagonal matrix for determin-and X'+1. ing 41.:

Mi , a hi + Mi -h----Thus, the system of equations (16)-(19) has a diagonal

(hi Mi )hi hi Mi (hi Mi advantage, hence it follows the existence and uniqueness of

IM ^ f (hi -2Mi)hi Fi -F^ _ the solution to system [23].

+ .. /i

(h)2 M (h-M )2M (h)~ Thus, provided l/3<ai<2/3, the interpolation cubic

2h - h - spline curve S(x) of defect 2 for partitions Ax, AT in the in-

= .-i+i—^--^ + -¿+1—^^ + terval [a, b], which meets conditions (l), (2), does exist and

i (hi+i -Mi+i)hi+i i hi+iMi+i is unique.

f hi+i ^ , (hi+i -Mi+i) Note that when one changes parameters ^ (shape pa-

Ji+i (- (- ) ML rameters of the curve), we obtain different curves, among

(h - 2 )h F - F which one selects the most suitable variant for a practical -/i+i '+i 2Mi+i)"i+i -(i5) application. Vj+i -Mi+i)M i+i Mi+i

Record expression (15) in the form:

5. Examples of calculations

-(5f> + B(2))< + C< = ^, i = 2, N -1,

where

(16)

A = ■

Mi

(hi -M)2h

B(2) =

, Bf> =

(2) = 3hi+1 Mi+1

2hi+Mi

Mihi '

(hi+1 -Mi+1)2

I JI

+f+1

(hi+1 -M.+1)hi+ h

C=

(hi -Mi )Mi

h

■f

hi+1M2+1 (hi - 2Mi )hi Ft - F-

(17)

- f

(hi -M. )2 M (hi -M. )

(hi+1- 2M i+1)hi+1 ^+1- F

(18)

(hi+i -Mi+i)Mi+i i+ (hi+i -Mi+i)ML Mi+1 To close the system of equations, we add conditions:

^ = f ^n = fN. (19)

It is obvious that values of a«, B«(1), B/2), C are positive and 0<ai<1, where ai=^i/hi. If Bi(1)>Ai and Bi(2)>Ci, system (16) will have a diagonal advantage.

If condition Bi(1)>Ai is met, we obtain inequality

2hi + Mi

Mi (hi -Mi)2' hence, inequality

2 + a.

\2

1 -a.

solution to which is ai<2/3.

Similarly, if condition Bi(2)>Ci is fulfilled, we obtain inequality

3hi+i -Mi+i > (hi+i -Mi+i)2 , 2 '

hi+i -Mi+i Mi+i hence, inequality

3 -«i 1 -a

1 -a

2

the solution to which is ai+i>i/3.

If a^i/3 then Bi(i)>Ai and Bi(2)=Ci. If «¿=2/3, then Bi(i)=Ai and Bi(2)>Ci, hence, Bi(i)+Bi(2)=>Ai+Ci.

We shall illustrate computational properties of the resulting curve by drawing the following examples.

5. 1. Example 1

Assume a grid function is assigned in the interval 0<x<ii. Values of the function are given in Table i. Accept H-i=i/2.

Table 1

Values of control points

Ti 1 2 3 4 5 6 7 8 9 10 11

Fi 1 3 3 1 2 7 1.5 1 10 2 1.5

Fig. i shows results of the construction of a spline curve in accordance with the proposed algorithm. In Fig. i, control points are indicated by points; in this case, the line connecting them is dotted. A solid line indicates the built spline curve.

0 2 4 6 8 10 12 Fig. 1. Results of the calculation of a spline curve

Fig. 2 shows the curve that is built based on the proposed method, and a curve from paper [ii]. Values of control points are taken from [ii] and are given in Table 2. The charts presented here show that the constructed curve is better in reproducing the shape assigned by control points. In this case, parameters of ^ accepted the following values: |i2=^3= = 0.7i4; ^4=^5=0.5; |i6=^7=0.286.

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

Table 2

Values of control points

Ti -3 -2 -1 0 1 2 3

Fi 0 0 0 1.7 0 0 0

a

Table 5

Values of control points

Ti 0 0.0245 0.0955 0.2061 0.3455 0.5 0.6545 0.7939 0.9045 0.9755 1

Fi 0 0.1545 0.2939 0.4045 0.4755 0.5 0.4755 0.4045 0.2939 0.1545 0

Fig. 2. Dotted line - curve from paper [11], a solid line - constructed curve

5. 2. Example 2

Let us consider control points that reside on the semicircle, assigned by equation

y = >/x-x2, 0<x< 1.

Values of control points are given in Table 3. Values of control points

Table 3

Ti 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Fi 0 0.3 0.4 0.458 0.490 0.5 0.490 0.458 0.4 0.3 0

Results of the construction are shown in Fig. 3. Designations in this Figure correspond to those in Fig. 1. This example demonstrates a good possibility for the approximation of the arc of a semicircle using the proposed curve.

"1 1 i 1 i 1 r 0 0.2 0.4 0.6 0.8 1

Fig. 3. Results of the construction of a curve for a uniform partitioning

The estimated radii, given in Table 4, show that the built curve rather well approximates a semicircle. An increase in the error at edges of the interval is due to the different length of the chord.

Let us choose now a partitioning on a given semicircle so that the lengths of the chords are the same. We shall then obtain values of control points that are given in Table 5.

Results of calculations are shown in Fig. 4. The radii calculated (Table 6) suggest that this curve is much better at approximating a semicircle. In this variant, the error decreased, especially at the edges of the interval.

i 1 i 1 r 0 0.2 0.4 0.6 0.8 1

Fig. 4. Results of the calculation of a spline curve for irregular partitioning

Table 6

Radius of the curve's constructed points (x,> (x,, f)

i 2 3 4 5 6 7 8 9 10

Rt 0.4952 0.4937 0.4937 0.4938 0.4938 0.4938 0.4937 0.4937 0.4952

Rx 0.4938 0.4938 0.4938 0.4938 0.4938 0.4938 0.4938 0.4938 0.4938

5. 3. Example 3

This example demonstrates the algorithm's capacity to select a strategy for changing the shape parameters in order to locally control the shape of the curve. Consider a fragment of the grid function that is set in the interval 0 <x<12. Values of control points are given in Table 7.

Table 7

Values of control points (fragment)

Ti 1 2 3 5 6 7

Fi 1.5 1 3 3 1 2.5

Fig. 5, a shows a fragment of the chart for the constructed spline curve for jj=h/2. Fig. 5, b shows result of the calculation in which at section (3.0, 5.0) j3=2/3. This variant demonstrates a local change in the shape of the curve by applying a parameter ^. Fig. 5c displays results of the calculation in which we added to section (3.0, 5.0) one more control point t4=4, F4=3, in this case, jui=hi/2. Fig. 5, d demonstrates the next change in the shape of the curve by using a parameter j. At section (3.0, 4.0), j3=2/3, at section (4.0, 5.0), j4=1/3.

The above examples demonstrate good approximating properties of the proposed curve, as well as a possibility to locally change its shape depending on control parameters and shape parameters j.

Table 4

Radius of the curve's constructed points (x,, ^,), (x,, f)

i 2 3 4 5 6 7 8 9 10

Rt 0.4879 0.4947 0.4967 0.4973 0.4974 0.4973 0.4967 0.4947 0.4879

Rx 0.4743 0.4950 0.4966 0.4972 0.4975 0.4975 0.4972 0.4966 0.4950

a b

c d

Fig. 5. A change in the shape of a spline curve at a change in parameter p and control points

6. Discussion of results of developing a method for _the construction of a spline curve_

In the framework of present research, we have proposed and substantiated a new method for constructing a spline curve of third degree. A given curve differs from other curves of this type in that the sections of straight lines that connect control points are tangent to it. Location of the touch points, as well as control points, can be assigned interactively and lead to a change in the shape of the curve. This makes it possible to flexibly set the shape of the curve by the user, which was confirmed using the examples of calculations.

Conditions for the assigned partition were found in the form of inequalities, which parameters must meet, at which the curve does exists and it is unique. These conditions follow from the requirement for a diagonal advantage of the matrix of the system for determining coefficients of the curve. The curve itself possesses a smoothness of C1 and retains the third degree for any number of control points. Note that the classic cubic spline has smoothness C2 and requires assigning additional boundary conditions at the ends of the

section. The constructed curve employs, as the boundary conditions, values of extreme control points. Finding the coefficients of polynomials that make up the curve comes down to solving a system of linear equations with a three-diagonal matrix. To solve the system, a sweep method is used. The disadvantages include the smoothness of C1 only; for most practical applications, however, this smoothness is sufficient.

Similar to the Bezier curves, the proposed curve could be used in computer graphics systems and computer systems for technical design. Thus, algorithmic innovations in this field are very important in order to develop the functionality of the specified systems for the graphical interpretation of experiment results, the creation of fonts, patterns, drawings of technical products, specifically parts and elements of transportation vehicles' bodies, etc.

The idea of applying additional points, as well as conditions for the fulfillment of continuity of the first derivatives of the curve in them, was proposed in [20, 21] to build and substantiate the new parabolic spline. Possible continuation of the work might include the application of the proposed approach in order to represent parametric curves and surfaces. The limitations of the proposed method include the presence of conditions for the shape parameters, which must be met when constructing the curve.

7. Conclusions

1. We have proposed a method for constructing a piece-wise-cubic spline curve, which possesses properties of both the spline and the Bezier curve. The resulting curve has a smoothness of C1 and retains third degree for any number of control points. A search for coefficients of the curve comes down to solving a system of linear equations.

2. Conditions were found in the form of inequalities, which parameters must meet, at which the curve does exists and it is unique. These conditions follow from the requirement for a diagonal advantage of the matrix of the system for determining coefficients of the curve.

A series of computational experiments were performed, which showed that the curve effectively inherits the shape assigned by control points (Example 1). A comparison to the results of other studies revealed that the proposed curve is better at reproducing the shape set by control points (Example 1). The curve is good at approximating a semicircle, which is quite a challenging task in the theory of approximations (Example 2). By using the curve's shape parameters, it is possible to locally control its shape and obtain different curves, among which one selects the variant that is best suited for practical application (Example 3).

References

1. Bezier P. E. How Renault Uses Numerical Control for Car Body Design and Tooling // SAE Technical Paper Series. 1968. doi: 10.4271/680010

2. Forrest A. R. Interactive Interpolation and Approximation by Bezier Polynomials // The Computer Journal. 1972. Vol. 15, Issue 1. P. 71-79. doi: 10.1093/comjnl/15.1.71

3. Bernshtein S. N. Proof of Weierstrass's theorem based on probability theory // In: Collected works. Vol. 1. Moscow: Publishing House of the USSR Academy of Sciences, 1952. P. 105-106.

4. Kononiuk A. E. Discretely continuous mathematics. Book 6. Surfaces. Part 1. Kyiv: Oswita Ukrainy, 2013. 578 p.

5. Grigor'ev M. I., Malozemov V. N., Sergeev A. N. Bernstein polynomials and composite B zier curves // Computational Mathematics and Mathematical Physics. 2006. Vol. 46, Issue 11. P. 1872-1881. doi: 10.1134/s0965542506110042

6. Boor C. de A practical guide to splines. Springer, i978. 348 p.

7. Hashemi-Dehkordi S.-M., Valentini P. P. Comparison between Bezier and Hermite cubic interpolants in elastic spline formulations // Acta Mechanica. 20i3. Vol. 225, Issue 6. P. i809-i82i. doi: 10.1007/s00707-013-1020-1

8. Levien R., Sequin C. H. Interpolating Splines: Which is the fairest of them all? // Computer-Aided Design and Applications. 2009. Vol. 6, Issue 1. P. 91-102. doi: 10.3722/cadaps.2009.91-102

9. Han X. Piecewise quartic polynomial curves with a local shape parameter // Journal of Computational and Applied Mathematics.

2006. Vol. 195, Issue 1-2. P. 34-45. doi: 10.1016/j.cam.2005.07.016

10. Ya L. On the shape parameter and constrained modification of GB-spline curves // Annales Mathematicae et Informaticae.

2007. Vol. 34. P. 51-59.

11. Cubic B-Spline Curves with Shape Parameter and Their Applications / Hang H., Yao X., Li Q., Artiles M. // Mathematical Problems in Engineering. 2017. Vol. 2017. P. 1-7. doi: 10.1155/2017/3962617

12. Han X.-A., Ma Y., Huang X. The cubic trigonometric Bezier curve with two shape parameters // Applied Mathematics Letters. 2009. Vol. 22, Issue 2. P. 226-231. doi: 10.1016/j.aml.2008.03.015

13. Dube M., Sharma R. Quadratic nuat B-spline curves with multiple shape parameters // International Journal of Machine Intelligence. 2011. Vol. 3, Issue 1. P. 18-24. doi: 10.9735/0975-2927.3.1.18-24

14. Troll E. Constrained modification of the cubic trigonometric Bezier curve with two shape parameters // Annales Mathematicae et Informaticae. 2014. Vol. 43. P. 145-156.

15. Yan L. Cubic Trigonometric Nonuniform Spline Curves and Surfaces // Mathematical Problems in Engineering. 2016. Vol. 2016. P. 1-9. doi: 10.1155/2016/7067408

16. Hearn D., Baker P. Computer Graphics with OpenGL. 3rd ed. Prentice Hall, 2004.

17. Gallier J. Curves and surfaces in geometric modeling: Theory and algorithms. Philadelphia, 2015. P. 9.

18. Rogers D. F. Adams J. A. Mathematical elements for computer grafics. 2nd ed. New York: McGraw Hill Publishing Company, 1990. 239 p.

19. Salomon D. Curves And Surfaces for Computer Graphics. Springer, 2006. 460 p. doi: 10.1007/0-387-28452-4

20. Stelya O. B. The existence of a parabolic spline // Appl. Mathem. 1997. Issue 1. P. 62-67.

21. Kivva S. L., Stelya O. B. About one parabolic spline // Computational technologies. 2001. Vol. 6, Issue 1. P. 21-31.

22. Bakhvalov N. S. Numerical methods. Moscow: Nauka, 1975. 632 p.

23. Samarsky A. A. Theory of difference schemes. 3rd ed. Moscow: Nauka, 1989. 616 p.

i Надоели баннеры? Вы всегда можете отключить рекламу.