![MathJax Logo](/templates/jsp/_style2/_tandf/pb2/images/math-jax.gif)
Abstract
In this paper, we study how to construct a planar cubic G1 Hermite interpolation curve with minimal length and curvature variation energy. This problem is solved by a bi-objective optimization model. We prove that there is a unique solution to this problem and give the expression of the solution. Some numerical examples show that the proposed method makes the curvature variation energy of the curve as small as possible when the length of the curve as short as possible.
1. Introduction
It is known that the planar two-point cubic G1 Hermite interpolation curve can be described as follows,
(1)
(1) where
and
are two points,
and
are two unit tangent directions, i.e.
,
and
are positive numbers,
are cubic Bernstein basis polynomials. In general, the unit tangent directions
and
are given in advance and the positive numbers
and
are often used as free parameters. One can choose suitable
and
to make the cubic G1 Hermite interpolation curve meet some certain needs.
Because the construction of fair (or smooth) curves is a fundamental problem in the filed of CAD and related application fields (see [Citation1–3]), a natural idea is to find the optimal and
for constructing the fair cubic G1 Hermite interpolation curves. The general ways to construct fair curves are achieved by minimizing some energy functional representing the fairness (see [Citation4]). The strain energy (bending energy) and curvature variation energy are two widely adopted metrics to describe the fairness of a planar curve, since curvature is the universal shape measure for curves (see [Citation1, Citation5–8]). Recently, some works on determining suitable
and
of the planar cubic G1 Hermite interpolation curve via strain energy minimization or curvature variation energy minimization have been proposed (see [Citation4, Citation9–12]).
As with fairness, length is another usual shape measure for curves. People often need to construct curves with specific length in the filed of CAD and related application fields. It is not difficult to think that one can find suitable and
to construct a cubic G1 Hermite curve with required length. Furthermore, one can even find suitable
and
to construct a fair cubic G1 Hermite curve with required length. Unfortunately, there is little discussion on this issue at present. In this paper, we consider finding suitable
and
for constructing the planar cubic G1 Hermite curves with minimal length and curvature variation energy. We give the computing method in Section 2. In Section 3 we show some numerical examples to illustrate the effectiveness of the method. We present a short conclusion and discussion in Section 4.
2. The computing method
2.1. Length minimization
Firstly, we consider minimizing the length of the cubic G1 Hermite interpolation curve for constructing a curve with minimal length. As we know, the length of the curve can be expressed by
(2)
(2)
Because it is too complicated for most practical applications, Equation (2) is often simplified to the following approximate form (see [Citation13]),
(3)
(3)
By a deduction from Equation (1), we can obtain that
(4)
(4) where
, and
are quadratic Bernstein basis polynomials.
By computing from Equation (4), Equation (3) becomes
(5)
(5) where
denotes the dot product of planar vector.
Let
(6)
(6) then Equations (5) and (6) have the same minimum.
The gradients of Equation (6) can be calculated as follows,
(7)
(7)
We can see from Equation (7) that the Hessian matrix of is
(8)
(8) where
represents the angle between vectors
and
. It can be easily checked from Equation (8) that the matrix
is symmetric positive definite. That means the quadratic functional
is strictly convex, and it has a unique global minimum. The following unique global minimum can be solved by
and
,
(9)
(9)
Then, we can choose the parameters as Equation (9) for constructing the cubic G1 Hermite interpolation curve with minimal length.
2.2. Curvature variation energy minimization
Secondly, we consider minimizing the curvature variation energy of the cubic G1 Hermite interpolation curve for constructing a fair curve. The curvature variation energy of the curve is defined by (see [Citation5])
(10)
(10) where
represents the curvature of the curve.
In order to simplify the calculation, Equation (10) can be approximated by (see [Citation12])
(11)
(11)
By a deduction from Equation (1), we can obtain that
(12)
(12)
By computing from Equation (12), Equation (11) becomes
(13)
(13)
Let
(14)
(14) then Equations (13) and (14) have the same minimum.
The gradients of (14) can be calculated as follows,
(15)
(15)
We can see from Equation (15) that the Hessian matrix of is
(16)
(16)
It can be easily checked from Equation (16) that the matrix is symmetric positive definite when
is not parallel to
. In this case the quadratic functional
is strictly convex, and it has a unique global minimum. The following unique global minimum can be solved by
and
,
(17)
(17)
Then, we can choose the parameters as Equation (17) for constructing the cubic G1 Hermite interpolation curve with minimal curvature variation energy.
2.3. Length and curvature variation energy minimization
Finally, let us consider minimizing the length and curvature variation energy synchronously for constructing a fair curve with minimal length. In order to achieve this goal, we need to solve the following bi-objective optimization problem,
(18)
(18) where
and
is expressed in (6) and (14) respectively.
By taking the sum of the two objectives with weights as a single objective functional, Equation (18) becomes
(19)
(19) where
is the weight and
.
If we have determined the value of the weight , the gradients of Equation (19) could be calculated as follows,
(20)
(20)
In this case, we can see from Equation (20) that the Hessian matrix of is
Lemma 2.1:
Let be not parallel to
, the matrix
is symmetric positive definite when
.
Proof: When , we have
. The determinant of
can be calculated by
(21)
(21) When
, it can be easily checked that
and
. From (21), we have
. Since
is not parallel to
, we obtain that
. Thus, the matrix
is symmetric positive definite.
Theorem 2.1:
When and
is not parallel to
, Equation (19) has a unique global solution given by
(22)
(22)
Proof: According to Lemma 1, Equation (19) has a unique global solution that can be solved by and
. By computing from Equation (20), we can obtain the unique global solution expressed in Equation (22).
Then, we can choose the parameters as Equation (22) for constructing the cubic G1 Hermite interpolation curve with minimal length and curvature variation energy.
Now, the only task left is to determine the value of the weight in Equation (22). There are several approaches to determine the value of the weight (see [Citation14]). Here, we use the ranking method. The overall algorithm is described in Algorithm 1, with some key steps detailed below. In Line 1, we compute the deviation between the two target functions. It is obvious that the deviation
,
. In Line 2, we compute the average deviation of the two target functions. Since
, the average deviations are actually
and
. In Line 3, we compute the initial weights of the two target functions. It is obvious that the initial weights satisfy
and
. In Line 4, we choose the smaller weight for the objective function with larger average deviation, and the larger weight for the objective function with smaller average deviation.
Table
3. Numerical examples
In this section, we give some numerical examples to illustrate effectiveness of the length and curvature variation energy minimization, and compare this method with the length minimization and the curvature variation energy minimization. All the numerical examples are implemented by MATLAB.
Example 3.1:
Let us take the following data,
We can obtain the two parameters of the three methods from Equations (9), (17), (22) and Algorithm 1. By substituting the obtained parameters into Equations (5) and (13), we can get the length and the curvature variation energy of the three methods. For the convenience of comparison, we put these results in Table .
Table 1. Parameters, length and curvature variation energy of the three methods (Example 1).
Figure shows the graphs of the following curves: the cubic Hermite interpolation curve with minimal length (in green), the cubic Hermite interpolation curve with minimal curvature variation energy (in blue), the cubic Hermite interpolation curve with minimal length and curvature variation energy (in red), and the polygonal line joining the points (in dotted).
Example 3.2:
Let us take the following data,
We put the results of the parameters, length and the curvature variation energy of the three methods in Table .
In Figure we present the cubic Hermite interpolation curve with minimal length (in green), the cubic Hermite interpolation curve with minimal curvature variation energy (in blue), the cubic Hermite interpolation curve with minimal length and curvature variation energy (in red), and the polygonal line joining the points (in dotted).
Example 3.3:
We take the following data taken from a unit arc,
where
. In this case, the G1 Hermite interpolation curve consists of two segments (The two segments are named as s1 and s2 for short). We put the results of the parameters, length and the curvature variation energy of each segment of the three methods in Table .
The cubic Hermite interpolation curve with minimal length (in green), the cubic Hermite interpolation curve with minimal curvature variation energy (in blue), the cubic Hermite interpolation curve with minimal length and curvature variation energy (in red), and the unit arc (in dotted) are shown in Figure .
Table 2. Parameters, length and curvature variation energy of the three methods (Example 2).
Table 3. Parameters, length and curvature variation energy of each segment of the three methods.
The above numerical examples show that the proposed method makes the curvature variation energy of the curve as small as possible when the length of the curve as short as possible. If we need to construct the fair curves with minimal length, the proposed method will come in handy.
4. Conclusion and discussion
This paper focuses on how to construct a fair cubic G1 Hermite interpolation curve with minimal length, which is achieved by solving a bi-objective optimization problem to search the optimal values of the two parameters. It can be found that there is a unique solution to this problem, and the expression of the solution is given in this paper. The cubic G1 Hermite interpolation curves obtained by the proposed method have less curvature variation energy in the case of shorter length. Some numerical examples verify this conclusion.
In this paper, we use the curvature variation energy as the metric to construct a fair cubic G1 Hermite interpolate curve. In fact, the strain energy is also a metric to construct fair curves. Maybe we can replace the curvature variation energy minimization with the strain energy minimization in the proposed method; however, the curvature variation energy minimization may obtain more satisfactory results in shape and fairness than the strain energy minimization for constructing cubic G1 Hermite interpolation curves (see [Citation4]). In addition, it is necessary to impose a feasible region on the two parameters (i.e.) for constructing a cubic G1 Hermite interpolation curve (see [Citation4, Citation10–12]). Therefore, one should select appropriate G1 Hermite data when using the proposed method.
Disclosure statement
No potential conflict of interest was reported by the authors.
Additional information
Funding
References
- Farin G. Curves and surfaces for CAGD: a practical guide. San Diego: Academic Press; 2002.
- Hofer M, Pottmann H. Energy-minimizing splines in manifolds. ACM T Graphic. 2004;23:284–293. doi: 10.1145/1015706.1015716
- Fan W, Lee C, Chen J. A realtime curvature-smooth interpolation scheme and motion planning for CNC machining of short line segments. Int J Mach Tool Manu. 2015;96:27–46. doi: 10.1016/j.ijmachtools.2015.04.009
- Lu L, Jiang C, Hu Q. Planar cubic G1 and quintic G2 Hermite interpolations via curvature variation minimization. Comput Graph. 2018;70:92–98. doi: 10.1016/j.cag.2017.07.007
- Farin G. Geometric Hermite interpolation with circular precision. Comput Aided Geom D. 2008;40:476–479. doi: 10.1016/j.cad.2008.01.003
- Renka R. Shape-preserving interpolation by fair discrete G3 space curves. Comput Aided Geom D. 2005;22:793–809. doi: 10.1016/j.cagd.2005.03.003
- Xu G, Wang G, Chen W. Geometric construction of energy-minimizing Bézier curves. Sci China Inform Sci. 2011;54:1395–1406. doi: 10.1007/s11432-011-4294-8
- Ahn Y, Hoffmann C, Rosen P. Geometric constraints on quadratic Bézier curves using minimal length and energy. J Comput Appl Math. 2014;255:887–897. doi: 10.1016/j.cam.2013.07.005
- Yong J, Cheng F. Geometric Hermite curves with minimum strain energy. Comput Aided Geom D. 2004;21:281–301. doi: 10.1016/j.cagd.2003.08.003
- Jaklič G, Žagar E. Planar cubic G1 interpolatory splines with small strain energy. J Comput Appl Math. 2011;235:2758–2765. doi: 10.1016/j.cam.2010.11.025
- Jaklič G, Žagar E. Curvature variation minimizing cubic Hermite interpolants. Appl Math Comput. 2011;218:3918–3924.
- Lu L. A note on curvature variation minimizing cubic Hermite interpolants. Appl Math Comput. 2015;259:596–599.
- Veltkamp R, Wesselink W. Modeling 3D curves of minimal energy. In: Eurographics 95, Maastricht, Netherlands, 1995;97–110.
- Lin C, Dong J. The methods and theories of multi-objective optimizations. Changchun: Jilin Education Press; 1992.