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 , , the following four functions about t are called cubic trigonometric interpolation basis functions with parameters α and β (CTI-basis functions for short),
where , .
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: .
- (b)
- Symmetry: .
- (c)
- Properties at the endpoints:
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 in or , the curves
are called cubic trigonometric interpolation curves with parameters α and β (CTI-curves for short), where , 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 and define the same CTI-curves in a different parameterization for the same shape parameters α and β, viz.,
- (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 , the CTI-curves are C2 and automatically interpolate all the given data points expect and .
Proof.
- (a)
- From the symmetry of the CTI-basis functions and Equation (2),
- (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),
From Equations (3)–(5), it is follows that
Equation (6) shows that the CTI-curves are C2. On the other hand, Equation (3) shows that the CTI-curves automatically interpolate all the given data points except and .
From Theorem 1, if two auxiliary points and are added to the given data points, the open C2 CTI-curves interpolating all the data points would be generated naturally. Generally, and can be taken as , . If three auxiliary points , and are taken as , , , the closed C2 CTI-curves interpolating all the data points 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 , , , , , , , and two auxiliary points , . Open C2 CTI-curves with different values of parameters α and β are shown in Figure 1, where the parameters are taken as (marked with dotted lines), (marked with solid lines), and (marked with dashed lines).
Figure 1.
Open C2 cubic trigonometric interpolation curves (CTI-curves) with different parameters.
Example 2.
Consider the data points , , , , and three auxiliary points , , . Closed C2 CTI-curves with different values of parameters α and β are shown in Figure 2, where the parameters are taken as (marked with dotted lines), (marked with solid lines), and (marked with dashed lines).
Figure 2.
Closed C2 CTI-curves with different parameters.
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 , , , , , , , , , and two auxiliary points , . 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): , (b): .
Figure 3.
Effects of the parameters on CTI-curves. (a) (b) .
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 can be approximately expressed as follows,
From Equation (7), for given data points and auxiliary points , , the optimal parameters α and β of the CTI-curves can be determined by an energy optimization model expressed as follows,
In order to obtain the minimum energy value, there must be
Set
where , , . Then, Equation (2) can be rewritten as follows,
where
From Equation (10), Equation (7) can be expressed as follows,
where
By Equation (11), Equation (9) can be rewritten as follows,
When , from Equation (12), then
Remark 4.
If , 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 holds.
After the optimal parameters and are determined by Equation (13), the optimal C2 CTI-curves interpolating all the given data points 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 and . 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 and .
Figure 4.
The optimal C2 CTI-curves.
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.
The energy values and time-consuming of the two methods.
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 in , the piecewise surfaces
are called cubic trigonometric interpolation surfaces with parameters , , and (CTI-surfaces for short), where , , and 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 , the CTI-surfaces (; ) automatically interpolate all the given data points except , and , and are C2.
Proof.
From the properties at the endpoints of the CTI-basis functions and Equation (14),
Equation (15) shows that the CTI-surfaces (; ) automatically interpolate all the given data points except , and , . In addition, the following results can also be obtained from Equation (15),
From Equations (16) and (17),
From Equations (18)–(20),
Equations (21)–(23) show that the CTI-surfaces (; ) are C2.
According to Theorem 2, for given data points , the CTI-surfaces automatically interpolate all the given data points except , and , . If auxiliary points , and , are added to the given data points, the C2 CTI-surfaces interpolating all the data points would be generated naturally. Generally, the auxiliary points can be taken as follows,
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 and of the CTI-surfaces. Figure 5 shows the C2 CTI-surfaces with different values of parameters and , where the data points are fixed and the auxiliary points are added according to Equation (24).
Figure 5.
C2 CTI-surfaces with different parameters. (a) ; (b) ; (c) ; (d) .
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 can be approximately expressed as follows,
From Equation (25), for given data points and auxiliary points , , , , the optimal parameters and of the CTI-surfaces can be determined by an energy optimization model expressed as follows,
The particle swarm optimization (PSO) algorithm [18] can be used to solve Equation (26). After the optimal parameters and are determined, the optimal C2 CTI-surfaces interpolating all the given data points 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
- Hoschek, J.; Lasser, D. Fundamentals of Computer Aided Geometric Design; Schumaker, L.L., Translator; A.K. Peters, Ltd.: Natick, MA, USA, 1993. [Google Scholar]
- Han, X.L. Cubic trigonometric polynomial curves with a shape parameter. Comput. Aided Geom. Des. 2004, 21, 535–548. [Google Scholar] [CrossRef]
- 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]
- Mainar, E. A general class of Bernstein-like bases. Comput. Math. Appl. 2007, 53, 1686–1703. [Google Scholar] [CrossRef]
- 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]
- 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]
- Han, X.L.; Zhu, Y.P. Curve construction based on five trigonometric blending functions. BIT Numer. Math. 2012, 52, 953–979. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- Yan, L.L. An algebraic-trigonometric blended piecewise curve. J. Infor. Comput. Sci. 2015, 12, 6491–6501. [Google Scholar] [CrossRef]
- Yan, L.L. Cubic trigonometric nonuniform spline curves and surfaces. Math. Probl. Eng. 2016, 2016, 1–9. [Google Scholar] [CrossRef]
- 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]
- Yan, L.L.; Liang, J.F. A class of algebraic-trigonometric blended splines. J. Comput. Appl. Math. 2011, 235, 1713–1729. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- 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.
© 2016 by the author; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/).




