Next Article in Journal
A Multiple Attribute Decision-Making Method Based on Exponential Fuzzy Numbers
Previous Article in Journal
Three-Parameter Interval Grey Number Multi-Attribute Decision Making Method Based on Information Entropy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Class of Cubic Trigonometric Automatic Interpolation Curves and Surfaces with Parameters

College of Mathematics and Finance, Hunan University of Humanities, Science and Technology, Loudi 417000, China
Math. Comput. Appl. 2016, 21(2), 18; https://doi.org/10.3390/mca21020018
Submission received: 5 March 2016 / Revised: 3 May 2016 / Accepted: 16 May 2016 / Published: 20 May 2016

Abstract

:
This paper presents the cubic trigonometric interpolation curves with two parameters generated over the space {1, sint, cost, sin2t, sin3t, cos3t}. The new curves can not only automatically interpolate the given data points without solving equation systems, but are also C2 and adjust their shape by altering values of the two parameters. The optimal interpolation curves can be determined by an energy optimization model. The corresponding interpolation surfaces have characteristics similar to the new curves.

1. Introduction

It is well known that the trigonometric polynomials have important applications in different areas, such as electronics or medicine [1]. Recently, trigonometric polynomials have received much attention within geometric modeling. For example, Han [2] presented a class of cubic trigonometric polynomial curves with a shape parameter, Zhang [3] constructed uniform B-splines by using trigonometric and hyperbolic basis, Mainar [4] used a class of trigonometric Bernstein basis constructing Bézier-like curve, Wang [5] constructed three types of splines by using trigonometric functions, Han [6] defined the cubic trigonometric Bézier curve with two shape parameters, Han [7] used five trigonometric blending functions defining a class of curve, Bashir [8,9] presented the rational quadratic and cubic trigonometric Bézier curve with two shape parameters, Han [10] constructed the symmetric trigonometric polynomial curves like Bézier curves based on normalized B-basis of the space of trigonometric polynomials of degree n, Yan [11] presented an algebraic-trigonometric blended piecewise curve with two shape parameters, Yan [12] constructed a class of cubic trigonometric non-uniform B-spline curves with local shape parameters, and so on.
In order to construct interpolation curves, Su [13] and Yan [14] constructed the trigonometric curves over the spaces {1, t, sint, cost, sin2t, cos2t} and {1, t, sint, cost, sin2t, sin3t, cos3t}. The two trigonometric curves presented in [13,14] can automatically interpolate the given data points without solving equation systems, which provides a simple and efficient way to construct interpolation curves. However, although the quasi-cubic blended interpolation curves defined by Su [13] could interpolate the given data points automatically, their shapes cannot be adjusted when the data points are fixed. The xyB curves defined by Yan [14] could interpolate the given data points automatically and adjust shape by changing the parameter x when the data points and auxiliary points are fixed, but they are only G2 and have one degree of freedom in the interpolation curves. The main purpose of this paper is to present a class of trigonometric interpolation curves, who can not only automatically interpolate the given data points without solving equation systems, but are also C2 and have two degrees of freedom in the interpolation curves.
The rest of this paper is organized as follows. In Section 2, the cubic trigonometric interpolation basis functions with two parameters generated over the space {1, sint, cost, sin2t, sin3t, cos3t} are presented, and some properties of the basis functions are given. In Section 3, the interpolation curves are defined on the base of the basis functions and some properties of the curves are given. Then, determining the optimal interpolation curves is discussed. In Section 4, the corresponding interpolation surfaces are presented. A short conclusion is given in Section 5.

2. The CTI-Basis Functions

The cubic trigonometric interpolation basis functions with two parameters are defined as follows.
Definition 1. 
For 0 t 1 , α , β R , the following four functions about t are called cubic trigonometric interpolation basis functions with parameters α and β (CTI-basis functions for short),
{ f 0 ( t ) = 1 24 ( ( 14 α 2 β + 6 ) + ( 9 α + 3 β 9 ) S + 24 α S 2 + ( 19 α β + 3 ) S 3 + ( 14 α + 2 β 6 ) C 3 ) f 1 ( t ) = 1 24 ( ( 2 α 10 β + 6 ) + ( 9 α 3 β + 9 ) C + 24 β S 2 + ( 2 α 14 β 6 ) S 3 + ( 7 α + 13 β + 9 ) C 3 ) f 2 ( t ) = 1 24 ( ( 2 α + 14 β + 6 ) + ( 9 α 3 β + 9 ) S 24 β S 2 + ( 7 α + 13 β + 9 ) S 3 + ( 2 α 14 β 6 ) C 3 ) f 3 ( t ) = 1 24 ( ( 10 α 2 β + 6 ) + ( 9 α + 3 β 9 ) C 24 α S 2 + ( 14 α + 2 β 6 ) S 3 + ( 19 α β + 3 ) C 3 )
where S : = sin π 2 t , C : = cos π 2 t .
Remark 1. 
In order to construct curves interpolating the given data points automatically, we also previously defined two kinds of basis functions. The first kind of basis functions are defined over the space {1, sint, cost, sin2t, cos2t} [15]. The corresponding curves can interpolate the given data points automatically, but their shapes cannot be adjusted when the data points and auxiliary points are kept unchanged. Hence, they do not have any degree of freedom in the interpolation curves. The second kind of basis functions are defined over the space {1, t, sint, cost, sin2t, cos2t} [16]. Although shapes of these interpolation curves can be adjusted by a control parameter, they are only C1. If we force them to be C2, then there is no degree of freedom in the interpolation curves. In order to get interpolation curves with better properties, we change the base space to {1, sint, cost, sin2t, sin3t, cos3t}. Thus, we get CTI-basis functions.
By simple deduction, the CTI-basis functions defined as Equation (1) have the following properties,
(a)
Partition of unity: f 0 ( t ) + f 1 ( t ) + f 2 ( t ) + f 3 ( t ) 1 .
(b)
Symmetry: f i ( 1 t ) = f 3 i ( t ) ( i = 0 , 1 , 2 , 3 ) .
(c)
Properties at the endpoints:
{ f 0 ( 0 ) = 0 , f 1 ( 0 ) = 1 , f 2 ( 0 ) = 0 , f 3 ( 0 ) = 0 f 0 ( 1 ) = 0 , f 1 ( 1 ) = 0 , f 2 ( 1 ) = 1 , f 3 ( 1 ) = 0
{ f 0 ( 0 ) = π 16 ( 3 α β + 3 ) , f 1 ( 0 ) = 0 , f 2 ( 0 ) = π 16 ( 3 α β + 3 ) , f 3 ( 0 ) = 0 f 0 ( 1 ) = 0 , f 1 ( 1 ) = π 16 ( 3 α β + 3 ) , f 2 ( 1 ) = 0 , f 3 ( 1 ) = π 16 ( 3 α β + 3 )
{ f 0 ( 0 ) = π 2 16 ( α β + 3 ) , f 1 ( 0 ) = π 2 8 ( α β + 3 ) , f 2 ( 0 ) = π 2 16 ( α β + 3 ) , f 3 ( 0 ) = 0 f 0 ( 1 ) = 0 , f 1 ( 1 ) = π 2 16 ( α β + 3 ) , f 2 ( 1 ) = π 2 8 ( α β + 3 ) , f 3 ( 1 ) = π 2 16 ( α β + 3 )

3. The CTI-Curves

3.1. Definition and Properties of the CTI-Curves

On the base of the CTI-basis functions, the corresponding curves can be defined as follows.
Definition 2. 
Given data points b i ( i = 0 , 1 , , n ; n 3 ) in R 2 or R 3 , the curves
p i ( t ) = j = 0 3 f j ( t ) b i + j
are called cubic trigonometric interpolation curves with parameters α and β (CTI-curves for short), where i = 0 , 1 , , n 3 , f j ( t ) ( j = 0 , 1 , 2 , 3 ) are the CTI-basis functions defined in Equation (1).
Theorem 1. 
The CTI-curves defined as Equation (2) have the following properties,
(a)
Symmetry: Both b i ( i = 0 , 1 , , n ) and b n i ( i = 0 , 1 , 2 , , n ) define the same CTI-curves in a different parameterization for the same shape parameters α and β, viz.,
p i ( t ; b i , b i + 1 , b i + 2 , b i + 3 ) = p i ( 1 t ; b i + 3 , b i + 2 , b i + 1 , b i ) ,   i = 0 , 1 , , n 3 .
(b)
Geometric invariance: Shapes of the CTI-curves are independent of the choice of coordinate system. An affine transformation for the CTI-curves can be performed by carrying out the same affine transformation for the data points.
(c)
C2 continuity and automatic interpolation property: For given data points b i ( i = 0 , 1 , , n ) , the CTI-curves p i ( t ) ( i = 0 , 1 , , n 3 ) are C2 and automatically interpolate all the given data points expect b 0 and b n .
Proof. 
(a)
From the symmetry of the CTI-basis functions and Equation (2),
p i ( 1 t ; b i + 3 , b i + 2 , b i + 1 , b i ) = f 0 ( 1 t ) b i + 3 + f 1 ( 1 t ) b i + 2 + f 2 ( 1 t ) b i + 1 + f 3 ( 1 t ) b i = f 3 ( t ) b i + 3 + f 2 ( t ) b i + 2 + f 1 ( t ) b i + 1 + f 0 ( t ) b i = p i ( t ; b i , b i + 1 , b i + 2 , b i + 3 )
(b)
Because Equation (2) is an affine combination of the data points, geometric invariance follows.
(c)
From the properties at the endpoints of CTI-basis functions and Equation (2),
p i ( 0 ) = b i + 1 , p i ( 1 ) = b i + 2
p i ( 0 ) = π 16 ( 3 α β + 3 ) ( b i + 2 b i ) ,   p i ( 1 ) = π 16 ( 3 α β + 3 ) ( b i + 3 b i + 1 )
p i ( 0 ) = π 2 16 ( α β + 3 ) ( b i 2 b i + 1 + b i + 2 ) ,   p i ( 1 ) = π 2 16 ( α β + 3 ) ( b i + 1 2 b i + 2 + b i + 3 )
From Equations (3)–(5), it is follows that
p i ( k ) ( 1 ) = p i + 1 ( k ) ( 0 )   ( k = 0 , 1 , 2 )
Equation (6) shows that the CTI-curves are C2. On the other hand, Equation (3) shows that the CTI-curves p i ( t ) ( i = 0 , 1 , , n 3 ) automatically interpolate all the given data points except b 0 and b n .
From Theorem 1, if two auxiliary points b 1 and b n + 1 are added to the given data points, the open C2 CTI-curves p i ( t ) ( i = 1 , 0 , 1 , , n 2 ) interpolating all the data points b i ( i = 0 , 1 , , n ) would be generated naturally. Generally, b 1 and b n + 1 can be taken as b 1 = 2 b 0 b 1 , b n + 1 = 2 b n b n 1 . If three auxiliary points b 1 , b n + 1 and b n + 2 are taken as b 1 = b n , b n + 1 = b 0 , b n + 2 = b 1 , the closed C2 CTI-curves p i ( t ) ( i = 1 , 0 , 1 , , n 2 ) interpolating all the data points b i ( i = 0 , 1 , , n ) would be generated naturally.
It is clear that there exist two degrees of freedom in the C2 CTI-curves even if the data points and auxiliary points are fixed. Different interpolation results can be obtained by altering the parameters α and β of the CTI-curves.
Example 1. 
Consider the data points b 0 = ( 0 , 0 ) , b 1 = ( 1 , 1 ) , b 2 = ( 2 , 0 ) , b 3 = ( 3 , 1 ) , b 4 = ( 4 , 0 ) , b 5 = ( 5 , 1 ) , b 6 = ( 6 , 0 ) , and two auxiliary points b 1 = ( 1 , 1 ) , b 7 = ( 7 , 1 ) . Open C2 CTI-curves with different values of parameters α and β are shown in Figure 1, where the parameters are taken as ( α , β ) = ( 0.5 , 0.5 ) (marked with dotted lines), ( α , β ) = ( 0 , 0 ) (marked with solid lines), and ( α , β ) = ( 0.5 , 0.5 ) (marked with dashed lines).
Example 2. 
Consider the data points b 0 = ( 0 , 1 ) , b 1 = ( 1 , 2 ) , b 2 = ( 2 , 1 ) , b 3 = ( 1 , 0 ) , and three auxiliary points b 1 = ( 1 , 0 ) , b 4 = ( 0 , 1 ) , b 5 = ( 1 , 2 ) . Closed C2 CTI-curves with different values of parameters α and β are shown in Figure 2, where the parameters are taken as ( α , β ) = ( 0.5 , 0.5 ) (marked with dotted lines), ( α , β ) = ( 0 , 0 ) (marked with solid lines), and ( α , β ) = ( 0.5 , 0.5 ) (marked with dashed lines).
Remark 2. 
When using the traditional cubic spline to construct C2 interpolation curves, the general way is to solve a linear equations system. However, due to the interpolation property and continuity of the CTI-curves, the interpolation curves can be generated naturally without solving an equations system. On the other hand, when the data points and auxiliary points are fixed, the traditional cubic interpolation curves are unique, while the CTI-curves can be adjusted by the parameters α and β.
Remark 3. 
Compared with some similar trigonometric interpolation curves (see in [13,14,15,16]), the CTI-curves presented in this paper have two outstanding characteristics,
(a)
Shapes of the CTI-curves can be adjusted by changing the parameters α and β even if data points and auxiliary points are kept unchanged.
(b)
The CTI-curves are not only C2 but also have two degrees of freedom in the interpolation curves.

3.2. The Optimal Cti-Curves

The CTI-curves have two degrees of freedom. The shapes of the curves are determined by the parameters α and β when the data points and auxiliary points are fixed. Hence, bad interpolation curves would be generated if the parameters α and β are chosen improperly.
Example 3. 
Consider the data points b 0 = ( 0 , 0 ) , b 1 = ( 1 , 0.5 ) , b 2 = ( 1.5 , 1 ) , b 3 = ( 2 , 2 ) , b 4 = ( 2.5 , 2.5 ) , b 5 = ( 3 , 2 ) , b 6 = ( 3.5 , 1 ) , b 7 = ( 4 , 0.5 ) , b 8 = ( 5 , 0 ) , and two auxiliary points b 1 = ( 1 , 0.5 ) , b 9 = ( 6 , 0.5 ) . Figure 3 shows the CTI-curves with different values of parameters α and β for the same data points and auxiliary points, where the parameters are taken as (a): ( α , β ) = ( 0.1 , 0.2 ) , (b): ( α , β ) = ( 3.6 , 2.8 ) .
It is obvious that the interpolation curves in Figure 3a are more satisfactory than the interpolation curves in Figure 3b. Hence, how to determine proper parameters α and β of the CTI-curves is the key when constructing C2 interpolation curves when the data points and auxiliary points are fixed. A method for determining the optimal parameters α and β of the CTI-curves is presented as follows.
When the CTI-curves are used to construct C2 interpolation curves, the interpolation curves are usually required to be smooth. Generally, the smoothness of a curve can be measured by its energy. The lower the energy is, the smoother the curve. According to Reference [17], the energy value of a curve r ( t ) ( a t b ) can be approximately expressed as follows,
E c = a b ( r ( t ) ) 2 d t
From Equation (7), for given data points b i ( i = 0 , 1 , , n ) and auxiliary points b 1 , b n + 1 , the optimal parameters α and β of the CTI-curves p i ( t ) ( i = 1 , 0 , 1 , , n 2 ) can be determined by an energy optimization model expressed as follows,
min E c ( α , β ) = i = 1 n 2 0 1 ( p i ( t ) ) 2 d t s . t . α , β R
In order to obtain the minimum energy value, there must be
{ E c α = 0 E c β = 0
Set
L 0 ( t ) = 1 24 ( 14 + 9 S + 24 S 2 19 S 3 + 14 C 3 ) ,   L 1 ( t ) = 1 24 ( 2 9 C 2 S 3 + 7 C 3 ) ,
L 2 ( t ) = 1 24 ( 2 9 S + 7 S 3 2 C 3 ) ,   L 3 ( t ) = 1 24 ( 10 + 9 C 24 S 2 + 14 S 3 19 C 3 ) ,
M 0 ( t ) = 1 24 ( 2 + 3 S S 3 + 2 C 3 ) ,   M 1 ( t ) = 1 24 ( 10 3 C + 24 S 2 14 S 3 + 13 C 3 ) ,
M 2 ( t ) = 1 24 ( 14 3 S 24 S 2 + 13 S 3 14 C 3 ) ,   M 3 ( t ) = 1 24 ( 2 + 3 C + 2 S 3 C 3 ) ,
N 0 ( t ) = 1 24 ( 6 9 S + 3 S 3 6 C 3 ) ,   N 1 ( t ) = 1 24 ( 6 + 9 C 6 S 3 + 9 C 3 ) ,
N 2 ( t ) = 1 24 ( 6 + 9 S + 9 S 3 6 C 3 ) ,   N 3 ( t ) = 1 24 ( 6 9 C 6 S 3 + 3 C 3 ) ,
where S : = sin π t 2 , C : = cos π t 2 , 0 t 1 . Then, Equation (2) can be rewritten as follows,
p i ( t ) = G i ( t ) α + H i ( t ) β + I i ( t )
where
G i ( t ) = L 0 ( t ) b i + L 1 ( t ) b i + 1 + L 2 ( t ) b i + 2 + L 3 ( t ) b i + 3 ,
H i ( t ) = M 0 ( t ) b i + M 1 ( t ) b i + 1 + M 2 ( t ) b i + 2 + M 3 ( t ) b i + 3 ,
I i ( t ) = N 0 ( t ) b i + N 2 ( t ) b i + 1 + N 3 ( t ) b i + 2 + N 4 ( t ) b i + 3 .
From Equation (10), Equation (7) can be expressed as follows,
E c = C 1 α 2 + C 2 β 2 + 2 C 3 α β + 2 C 4 α + 2 C 5 β + C 6
where
C 1 = i = 0 n 3 0 1 ( G i ( t ) ) 2 d t ,   C 2 = i = 0 n 3 0 1 ( H i ( t ) ) 2 d t ,   C 3 = i = 0 n 3 0 1 ( G i ( t ) H i ( t ) ) d t ,
C 4 = i = 0 n 3 0 1 ( G i ( t ) I i ( t ) ) d t ,   C 5 = i = 0 n 3 0 1 ( H i ( t ) I i ( t ) ) d t ,   C 6 = i = 0 n 3 0 1 ( I i ( t ) ) 2 d t .
By Equation (11), Equation (9) can be rewritten as follows,
{ C 1 α + C 3 β + C 4 = 0 C 3 α + C 2 β + C 5 = 0
When C 1 C 2 C 3 2 0 , from Equation (12), then
{ α = C 3 C 5 C 2 C 4 C 1 C 2 C 3 2 β = C 3 C 4 C 1 C 5 C 1 C 2 C 3 2
Remark 4. 
If C 1 C 2 C 3 2 = 0 , there would be no unique solution to Equation (13). At this point, the two auxiliary points could be adjusted properly in order to ensure that C 1 C 2 C 3 2 0 holds.
After the optimal parameters α = α ˜ and β = β ˜ are determined by Equation (13), the optimal C2 CTI-curves p ˜ i ( t ) ( i = 1 , 0 , 1 , , n 2 ) interpolating all the given data points b i ( i = 0 , 1 , , n ) can be obtained.
Example 4. 
For the same data points and auxiliary points in Example 3, the optimal parameters of the CTI-curves, determined by Equation (13), are α ˜ = 0.0443 and β ˜ = 0.4836 . The optimal C2 CTI-curves (solid lines) and the interpolation curves constructed by the classical cubic B-spline curves (dashed lines) are shown in Figure 4, where the tangent vectors at the endpoints of the classical cubic B-spline curves are taken as 3 ( b 0 b 1 ) and 3 ( b 9 b 8 ) .
For comparing the CTI-curves with the classical cubic B-spline curves to construct interpolation curves, the energy values and time-consuming of the two methods are shown in Table 1.
Table 1 shows that the interpolation curves constructed by the CTI-curves are smoother and faster to compute than the classical cubic B-spline curves.

4. The CTI-Surfaces

Using tensor products, the corresponding CTI-surfaces can be defined as follows.
Definition 3. 
Given data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) in R 3 , the piecewise surfaces
p i , j ( u , v ) = k = 0 3 l = 0 3 f k ( u ) f l ( v ) b i + k , j + l
are called cubic trigonometric interpolation surfaces with parameters α 1 , β 1 , α 2 and β 2 (CTI-surfaces for short), where i = 0 , 1 , , m 3 , j = 0 , 1 , , n 3 , f k ( u ) : = f k ( u ; α 1 , β 1 ) and f l ( v ) : = f l ( v ; α 2 , β 2 ) ( i = 0 , 1 , 2 , 3 ) are the CTI-basis functions defined according to Equation (1).
It is not difficult to show that the CTI-surfaces have properties similar to the CTI-curves, which include the following important property.
Theorem 2. 
Given data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) , the CTI-surfaces p i , j ( u , v ) ( i = 0 , 1 , , m 3 ; j = 0 , 1 , , n 3 ) automatically interpolate all the given data points except b 0 , l , b m , l ( l = 0 , 1 , , n ) and b k , 0 , b k , n ( k = 0 , 1 , , m ) and are C2.
Proof. 
From the properties at the endpoints of the CTI-basis functions and Equation (14),
{ p i , j ( 0 , 0 ) = b i + 1 , j + 1 p i , j ( 0 , 1 ) = b i + 1 , j + 2 p i , j ( 1 , 0 ) = b i + 2 , j + 1 p i , j ( 1 , 1 ) = b i + 2 , j + 2
{ u p i , j ( 0 , v ) = π 16 l = 0 3 f l ( v ) ( b i + 2 , j + l b i , j + l ) u p i , j ( 1 , v ) = π 16 l = 0 3 f l ( v ) ( b i + 3 , j + l b i + 1 , j + l ) u p i , j ( u , 0 ) = k = 0 3 f k ( u ) b i + k , j + 1 u p i , j ( u , 1 ) = k = 0 3 f k ( u ) b i + k , j + 2
{ v p i , j ( 0 , v ) = l = 0 3 f l ( v ) b i + 1 , j + l v p i , j ( 1 , v ) = l = 0 3 f l ( v ) b i + 2 , j + l v p i , j ( u , 0 ) = π 16 k = 0 3 f k ( u ) ( b i + k , j + 2 b i + k , j ) v p i , j ( u , 1 ) = π 16 k = 0 3 f k ( u ) ( b i + k , j + 3 b i + k , j + 1 )
{ u v p i , j ( 0 , v ) = π 16 l = 0 3 f l ( v ) ( b i + 2 , j + l b i , j + l ) u v p i , j ( 1 , v ) = π 16 l = 0 3 f l ( v ) ( b i + 3 , j + l b i + 1 , j + l ) u v p i , j ( u , 0 ) = π 16 k = 0 3 f k ( u ) ( b i + k , j + 2 b i + k , j ) u v p i , j ( u , 1 ) = π 16 k = 0 3 f k ( u ) ( b i + k , j + 3 b i + k , j + 1 )
{ u u p i , j ( 0 , v ) = π 2 16 l = 0 3 f l ( v ) ( b i , j + l 2 b i + 1 , j + l + b i + 2 , j + l ) u u p i , j ( 1 , v ) = π 2 16 l = 0 3 f l ( v ) ( b i + 1 , j + l 2 b i + 2 , j + l + b i + 3 , j + l ) u u p i , j ( u , 0 ) = k = 0 3 f k ( u ) b i + k , j + 1 u u p i , j ( u , 1 ) = k = 0 3 f k ( u ) b i + k , j + 2
{ v v p i , j ( 0 , v ) = l = 0 3 f l ( v ) b i + 1 , j + l v v p i , j ( 1 , v ) = l = 0 3 f l ( v ) b i + 2 , j + l v v p i , j ( u , 0 ) = π 2 16 k = 0 3 f k ( u ) ( b i + k , j 2 b i + k , j + 1 + b i + k , j + 2 ) v v p i , j ( u , 1 ) = π 2 16 k = 0 3 f k ( u ) ( b i + k , j + 1 2 b i + k , j + 2 + b i + k , j + 3 )
Equation (15) shows that the CTI-surfaces p i , j ( u , v ) ( i = 0 , 1 , , m 3 ; j = 0 , 1 , , n 3 ) automatically interpolate all the given data points except b 0 , l , b m , l ( l = 0 , 1 , , n ) and b k , 0 , b k , n ( k = 0 , 1 , , m ) . In addition, the following results can also be obtained from Equation (15),
{ p i , j ( 1 , 0 ) = p i + 1 , j ( 0 , 0 ) p i , j ( 1 , 1 ) = p i + 1 , j ( 0 , 1 ) p i , j ( 0 , 1 ) = p i , j + 1 ( 0 , 0 ) p i , j ( 1 , 1 ) = p i , j + 1 ( 1 , 0 )
From Equations (16) and (17),
{ u p i , j ( 1 , v ) = u p i + 1 , j ( 0 , v ) u p i , j ( u , 1 ) = u p i , j + 1 ( u , 0 ) v p i , j ( 1 , v ) = v p i + 1 , j ( 0 , v ) v p i , j ( u , 1 ) = v p i , j + 1 ( u , 0 )
From Equations (18)–(20),
{ u v p i , j ( 1 , v ) = u v p i + 1 , j ( 0 , v ) u v p i , j ( u , 1 ) = u v p i , j + 1 ( u , 0 ) u u p i , j ( 1 , v ) = u u p i + 1 , j ( 0 , v ) u u p i , j ( u , 1 ) = u u p i , j + 1 ( u , 0 ) v v p i , j ( 1 , v ) = v v p i + 1 , j ( 0 , v ) v v p i , j ( u , 1 ) = v v p i , j + 1 ( u , 0 )
Equations (21)–(23) show that the CTI-surfaces p i , j ( u , v ) ( i = 0 , 1 , , m 3 ; j = 0 , 1 , , n 3 ) are C2.
According to Theorem 2, for given data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) , the CTI-surfaces automatically interpolate all the given data points except b 0 , l , b m , l ( l = 0 , 1 , , n ) and b k , 0 , b k , n ( k = 0 , 1 , , m ) . If auxiliary points b 1 , j , b m + 1 , j ( j = 0 , 1 , , n ) and b i , 1 , b i , n + 1 ( i = 0 , 1 , , m ) are added to the given data points, the C2 CTI-surfaces interpolating all the data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) would be generated naturally. Generally, the auxiliary points can be taken as follows,
{ b 1 , 1 = 2 b 0 , 0 b 1 , 1 , b 1 , n + 1 = 2 b 0 , n b 1 , n 1 b m + 1 , 1 = 2 b m , 0 b m 1 , 1 , b m + 1 , n + 1 = 2 b m , n b m 1 , n 1 b 1 , j = 2 b 0 , j b 1 , j , b m + 1 , j = 2 b m , j b m 1 , j , j = 0 , 1 , , n b i , 1 = 2 b i , 0 b i , 1 , b i , n + 1 = 2 b i , n b i , n 1 , i = 0 , 1 , , m
It is clear that there exist four degrees of freedom in the C2 CTI-surfaces, even if the data points and auxiliary points are fixed. Different interpolation results can be obtained by altering the parameters α i and β i ( i = 1 , 2 ) of the CTI-surfaces. Figure 5 shows the C2 CTI-surfaces with different values of parameters α i and β i ( i = 1 , 2 ) , where the data points b k , l ( k = 0 , 1 , 2 , 3 ; l = 0 , 1 , 2 , 3 ) are fixed and the auxiliary points are added according to Equation (24).
Similar to the optimal CTI-curves, the optimal CTI-surfaces can also be determined by an energy optimization model. According to Ref. [17], the energy value of a surface r ( u , v ) ( a u b , c v d ) can be approximately expressed as follows,
E s = a b c d ( ( r u u ( u , v ) ) 2 + 2 ( r u v ( u , v ) ) 2 + ( r v v ( u , v ) ) 2 ) d u d v
From Equation (25), for given data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) and auxiliary points b 1 , j , b m + 1 , j ( j = 0 , 1 , , n ) , b i , 1 , b i , n + 1 ( i = 0 , 1 , , m ) , the optimal parameters α i and β i ( i = 1 , 2 ) of the CTI-surfaces p i , j ( u , v ) ( i = 1 , 0 , 1 , , m 2 ; j = 1 , 0 , 1 , , n 2 ) can be determined by an energy optimization model expressed as follows,
min E s ( α 1 , β 1 , α 2 , β 2 ) = i = 1 m 2 j = 1 n 2 0 1 0 1 ( ( 2 p i , j ( u , v ) u 2 ) 2 + 2 ( 2 p i , j ( u , v ) u v ) 2 + ( 2 p i , j ( u , v ) v 2 ) 2 ) d u d v s . t . α 1 , β 1 , α 2 , β 2 R
The particle swarm optimization (PSO) algorithm [18] can be used to solve Equation (26). After the optimal parameters α i = α ˜ i and β i = β ˜ i ( i = 1 , 2 ) are determined, the optimal C2 CTI-surfaces p ˜ i , j ( u , v ) ( i = 1 , 0 , 1 , , m 2 ; j = 1 , 0 , 1 , , n 2 ) interpolating all the given data points b k , l ( k = 0 , 1 , , m ; l = 0 , 1 , , n ) can be obtained.

5. Conclusions

The CTI-curves presented in this paper can not only automatically interpolate the given data points without solving equation systems, but are also C2 and have two degrees of freedom. The CTI-surfaces also have characteristics similar to the CTI-curves. Therefore, the CTI-curves/surfaces presented in this paper provide a simple and efficient way for constructing interpolation curves and surfaces.
For practical applications of the proposed interpolation curves and surfaces in geometric modeling, it is clear that some special algorithms need to be established. Furthermore, the proposed interpolation curves and surfaces allow only global adjustment. Hence, local adjustment of the proposed interpolation curves and surfaces also need to be investigated. Some interesting results in this area will be presented in a follow-up study.

Acknowledgments

This work was supported by the National Natural Science Foundation of China under the grand number 61472135 and the Scientific Research Fund of Hunan Provincial Education Department of China under the grant number 14B099. The authors are also very grateful to the Hunan provincial key construction discipline “Computer Application Technology” of Hunan University of Humanities, Science and Technology of China.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Hoschek, J.; Lasser, D. Fundamentals of Computer Aided Geometric Design; Schumaker, L.L., Translator; A.K. Peters, Ltd.: Natick, MA, USA, 1993. [Google Scholar]
  2. Han, X.L. Cubic trigonometric polynomial curves with a shape parameter. Comput. Aided Geom. Des. 2004, 21, 535–548. [Google Scholar] [CrossRef]
  3. Zhang, J.W.; Krause, F.L. Extending cubic uniform B-splines by unified trigonometric and hyperbolic basis. Gr. Model. 2005, 67, 100–119. [Google Scholar] [CrossRef]
  4. Mainar, E. A general class of Bernstein-like bases. Comput. Math. Appl. 2007, 53, 1686–1703. [Google Scholar] [CrossRef]
  5. Wang, G.Z.; Fang, M.E. Unified and extended form of three types of splines. J. Comput. Appl. Math. 2008, 216, 498–508. [Google Scholar] [CrossRef]
  6. Han, X.A.; Ma, Y.C.; Huang, X.L. The cubic trigonometric Bézier curve with two shape parameters. Appl. Math. Lett. 2009, 22, 226–231. [Google Scholar] [CrossRef]
  7. Han, X.L.; Zhu, Y.P. Curve construction based on five trigonometric blending functions. BIT Numer. Math. 2012, 52, 953–979. [Google Scholar] [CrossRef]
  8. Bashir, U.; Abbsa, M.; Ali, J.M. The G2 and C2 rational quadratic trigonometric Bézier curve with two shape parameters with applications. Appl. Math. Comput. 2013, 219, 10183–10197. [Google Scholar] [CrossRef]
  9. Bashir, U.; Ali, J.M. Rational cubic trigonometrc Bézier curve with two shape parameters. Comput. Appl. Math. 2016, 35, 285–300. [Google Scholar] [CrossRef]
  10. Han, X.L. Normalized B-basis of the space of trigonometric polynomials and curve design. Appl. Math. Comput. 2015, 251, 336–348. [Google Scholar] [CrossRef]
  11. Yan, L.L. An algebraic-trigonometric blended piecewise curve. J. Infor. Comput. Sci. 2015, 12, 6491–6501. [Google Scholar] [CrossRef]
  12. Yan, L.L. Cubic trigonometric nonuniform spline curves and surfaces. Math. Probl. Eng. 2016, 2016, 1–9. [Google Scholar] [CrossRef]
  13. Su, B.Y.; Tan, J.Q. A family of quasi-cubic blended splines and applications. J. Zhejiang Univ. Sci. A 2006, 7, 1550–1560. [Google Scholar] [CrossRef]
  14. Yan, L.L.; Liang, J.F. A class of algebraic-trigonometric blended splines. J. Comput. Appl. Math. 2011, 235, 1713–1729. [Google Scholar] [CrossRef]
  15. Li, J.C.; Zhao, D.B.; Yang, L. Quasi-cubic trigonometric spline interpolation curves and surfaces. J. Chin. Comput. Syst. 2013, 34, 680–684. (In Chinese) [Google Scholar]
  16. Yang, L.; Li, J.C.; Kuang, X.L. A family of local adjustable cubic algebraic-trigonometric interpolation spline. Comput. Eng. Sci. 2013, 35, 130–135. (In Chinese) [Google Scholar]
  17. Poliakoff, J.F. An improved algorithm for automatic fairing of non-uniform parametric cubic splines. Comput. Aided Des. 1996, 28, 59–66. [Google Scholar] [CrossRef]
  18. Eberhart, R.C.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the Sixth International Symposium on Micro Machine and Human Science, Nagoya, Japan, 4–6 October 1995; pp. 39–43.
Figure 1. Open C2 cubic trigonometric interpolation curves (CTI-curves) with different parameters.
Figure 1. Open C2 cubic trigonometric interpolation curves (CTI-curves) with different parameters.
Mca 21 00018 g001
Figure 2. Closed C2 CTI-curves with different parameters.
Figure 2. Closed C2 CTI-curves with different parameters.
Mca 21 00018 g002
Figure 3. Effects of the parameters on CTI-curves. (a) ( α , β ) = ( 0.1 , 0.2 ) (b) ( α , β ) = ( 3.6 , 2.8 ) .
Figure 3. Effects of the parameters on CTI-curves. (a) ( α , β ) = ( 0.1 , 0.2 ) (b) ( α , β ) = ( 3.6 , 2.8 ) .
Mca 21 00018 g003
Figure 4. The optimal C2 CTI-curves.
Figure 4. The optimal C2 CTI-curves.
Mca 21 00018 g004
Figure 5. C2 CTI-surfaces with different parameters. (a) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.5 , 0.5 , 0.5 , 0.5 ) ; (b) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.5 , 0.5 , 0.5 , 0.5 ) ; (c) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.1 , 0.5 , 0.4 , 0.3 ) ; (d) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.3 , 0 , 0 , 0.4 ) .
Figure 5. C2 CTI-surfaces with different parameters. (a) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.5 , 0.5 , 0.5 , 0.5 ) ; (b) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.5 , 0.5 , 0.5 , 0.5 ) ; (c) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.1 , 0.5 , 0.4 , 0.3 ) ; (d) ( α 1 , β 1 , α 2 , β 2 ) = ( 0.3 , 0 , 0 , 0.4 ) .
Mca 21 00018 g005
Table 1. The energy values and time-consuming of the two methods.
Table 1. The energy values and time-consuming of the two methods.
MethodEnergy ValueTime-Consuming (s)
CTI-curves4.85849.6
Classical cubic B-spline curves17.613716.3

Share and Cite

MDPI and ACS Style

Li, J. A Class of Cubic Trigonometric Automatic Interpolation Curves and Surfaces with Parameters. Math. Comput. Appl. 2016, 21, 18. https://doi.org/10.3390/mca21020018

AMA Style

Li J. A Class of Cubic Trigonometric Automatic Interpolation Curves and Surfaces with Parameters. Mathematical and Computational Applications. 2016; 21(2):18. https://doi.org/10.3390/mca21020018

Chicago/Turabian Style

Li, Juncheng. 2016. "A Class of Cubic Trigonometric Automatic Interpolation Curves and Surfaces with Parameters" Mathematical and Computational Applications 21, no. 2: 18. https://doi.org/10.3390/mca21020018

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop