Next Article in Journal
(Non-)Thermal Production of WIMPs during Kination
Previous Article in Journal
Complexity Effective Sampling Frequency Offset Estimation Method for OFDM-Based HomePlug Green PHY Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling of Free-Form Complex Curves Using SG-Bézier Curves with Constraints of Geometric Continuities

1
Department of Applied Mathematics, Xi’an University of Technology, Xi’an 710054, China
2
Department of Mathematics & Computer Science, University of North Carolina at Pembroke, Pembroke, NC 28372, USA
*
Author to whom correspondence should be addressed.
Symmetry 2018, 10(11), 545; https://doi.org/10.3390/sym10110545
Submission received: 25 September 2018 / Revised: 19 October 2018 / Accepted: 22 October 2018 / Published: 25 October 2018

Abstract

:
The modeling of free-form engineering complex curves is an important subject in product modeling, graphics, and computer aided design/computer aided manufacturing (CAD/CAM). In this paper, we propose a novel method to construct free-form complex curves using shape-adjustable generalized Bézier (or SG-Bézier, for short) curves with constraints of geometric continuities. In order to overcome the difficulty that most of the composite curves in engineering cannot often be constructed by using only a single curve, we propose the necessary and sufficient conditions for G1 and G2 continuity between two adjacent SG-Bézier curves. Furthermore, the detailed steps of smooth continuity for two SG-Bézier curves, and the influence rules of shape parameters on the composite curves, are studied. We also give some important applications of SG-Bézier curves. The modeling examples show that our methods in this paper are very effective, can easily be performed, and can provide an alternative powerful strategy for the design of complex curves.

1. Introduction

As a useful tool for shape designs and geometric representations of different kinds of products, parametric curves and surfaces have become an important research subject in CAD/CAM. Traditional Bézier curves and surfaces, which hold simple definitions and enjoy many excellent properties, are obtained by using the Bernstein basis functions. Due to this superiority, the traditional Bézier curves and surfaces have been becoming an important way to represent curves and surfaces in the CAD/CAM field. However, the Bézier method still has some shortcomings which are manifested mainly in the following two aspects: ① the shapes of the Bézier model are only determined by their control points; ② conic curves and surfaces cannot be represented by the Bézier method accurately. So, in order to overcome the former defect, rational Bézier curves and surfaces have been proposed in recent years whose shapes can be modified by adjusting their weight factors while keeping the control points unchanged. However, some other problems, such as complex calculations, cumbersome integrals, and repetitive differentiation [1,2] will be caused by the introduction of rational fractions. In addition, using the spline method can also realize shape control in constructing complex curves; many theories about splines can be found in [3]. Another relevant class of literature that gives more degrees of freedom for shape control relates to the degree elevation and degree reduction; see [4,5].
For the past few years, scholars have proposed various Bézier curves with shape parameters [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22] so as to keep the advantages and increase the shape adjustability of the traditional Bézier curves. Oruc et al. [6] constructed a new kind of q-Bernstein basis function and gave the definition of q-Bézier curves. Wang et al. [7] used a selected initial function and combined it with an integral to propose some types of Bézier curves with shape parameters. To introduce one shape parameter into Bézier curves, Yan et al. [8] extended quadratic Bernstein basis functions to quartic Bernstein-like basis functions, and then utilized the De Casteljau elevation algorithm and recursive method; a class of high-degree generalized Bézier curves were obtained. In 2014, Chu [9] used Beta functions to construct a kind of Beta–Bézier basis function, and thereby give the corresponding definition of the Beta–Bézier curve with one shape parameter. Furthermore, Farin et al. [10] and Cao et al. [11] gave two different kinds of high-degree Bézier curves with single shape parameters, respectively. As only one shape parameter is contained in curves in the literature [6,7,8,9,10,11], its value can be modified to make this type of curve merely simply swing from one or two sides of classical Bézier curves. This leads to the limitation of the local shape adjustability.
Scholars have carried out some studies of integrating several shape parameters into high-degree Bézier curves (see [12,13,14,15,16,17,18,19,20,21,22]) in order to improve their local shape adjustability further. The curves in [12,13,14,15,16,17,18,19,20,21,22] had something in common: ① these curves inherited the most beneficial properties of classical Bézier curves; ② these curves possessed multiple local shape parameters, which could be easily utilized to modify the local shapes of these curves once the control points were given. However, as shown in [12,13,14,15,16,17,18,19,20,21,22], these curves have no global shape parameters, which results in the inconvenience of global shape adjustability for the curves.
To sum up, the local shape adjustments of the curves and surfaces in [6,7,8,9,10,11] are difficult and caused by the absence of a local shape parameter, while the global shapes adjustment in [12,13,14,15,16,17,18,19,20,21,22] are inconvenient as a result of the lack of a global shape parameter. In practical engineering applications, the local or global shapes of curves or surfaces often need to be modified under the condition of the control points remaining the same. Therefore, the research on how to construct a kind of special curve and surfaces that holds shape adjustability becomes an important topic with great value. Hu et al. introduced certain polynomial curves and surfaces called SG-Bézier curves, which can be regarded as an extension of classic Bézier curves; their global and local shape can be adjusted by altering the global and local shape parameters under the condition of keeping the control points unchanged, respectively [23]. The theoretical analysis shows that the proposed SG-Bézier curves hold most of the advantages of the classical Bézier model, as well as overcomes the disadvantages of the Bézier model [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22].
In practical engineering applications, complex curves are often constructed by using the piecewise method. In order to make the final composite curves have overall smoothness, the adjacent curves should meet some specific continuity conditions. As an important current research topic in CAD/CAM systems, the smooth continuity technology between two parametric curves has an impact on the construction of complex curves. At present, two types of standards have been established for measuring the smoothness joining between two adjacent parametric curves [24,25]: ① parametric continuity (usually called Cn continuity); and ② geometric continuity (namely, Gn continuity). Compared with the traditional Bézier curves, the SG-Bézier curves in [23] have more advantages and play a key role in representing complex curves. Nonetheless, the expressions of SG-Bézier curves are polynomials, and one will also be facing the issue of smooth joining to construct composite curves. According to the basis functions and terminal properties of SG-Bézier curves, we give the geometric continuity conditions between two SG-Bézier curves in this paper. The modeling examples show that the shape adjustability of the composite curves are more flexible, which lends itself to the wide application of the SG-Bézier curves.
The outline of this paper is as follows. The definition and properties of SG-Bézier curves are described in Section 2. In Section 3, we give the G1 and G2 continuity conditions for SG-Bézier curves. In Section 4, we then investigate the steps of smooth joining for SG-Bézier curves and give some examples. In Section 5, we analyze the shape adjustment of piecewise SG-Bézier curves. Finally, some practical applications are shown in Section 6. At the end of the paper, we give a short conclusion in Section 7.

2. The family of SG-Bézier Curves

2.1. SG-Bernstein Basis Functions of Degree n

Definition 1.
For n 2 , n N + and any t [ 0 , 1 ] , we call the functions with respect to t following:
{ l j , n ( t ; λ j , λ j + 1 , ω ) = [ ( n j ) + ( ( n + 1 j ) ( n j ) λ j ) ω + ( λ j + λ j + 1 ( n + 1 j ) ) ω t ]     t i ( 1 t ) n i l n j , n ( t ; μ j , μ j + 1 , ω ) = [ ( n j ) + ( μ j + 1 ( n j ) ) ω ( μ j + μ j + 1 ( n + 1 j ) ) ω t ]    t n i ( 1 t ) i  
the nth-degree shape-adjustable generalized Bernstein (or SG-Bernstein, for short) basis functions with shape parameters [23], where j = 0 , 1 , , [ n / 2 ] , 0 ω 1 , and λ 0 = μ 0 = 0 , 0 λ j , μ j ( n + 1 j ) ( j = 1 , 2 , , [ n / 2 ] + 1 ) are shape parameters.
Remark 1.
It can be seen that the values of the shape parameters λ j , μ j in Equation (1) meet the following constraint conditions:
(a) if n is even,
λ [ n / 2 ] + 1 = ( n + 1 [ n / 2 ] ) μ [ n / 2 ] , μ [ n / 2 ] + 1 = ( n + 1 [ n / 2 ] ) λ [ n / 2 ] ;
(b) ifnis odd,
λ [ n / 2 ] + 1 = ( n + 1 [ n / 2 ] + 1 ) μ [ n / 2 ] + 1
From the definition above, we can know that the SG-Bernstein basis functions in Equation (1) have n + 1 polynomials, each of which is of the degree n + 1. The basis functions defined by Equation (1) have n + 1 different shape parameters, which are ω , λ j , μ j , respectively. Specially, if n is even, the numbers of λ j and μ j are equal to n/2, respectively; while if n is odd, the number of λ j is equal to (n + 1)/2, and the number of μ j is equal to (n − 1)/2.
It can be verified that the SG-Bernstein basis functions l j , n ( t ) ( j = 0 , 1 , , n ) defined by Equation (1) possess most of the properties that are similar to those of the nth-degree traditional Bernstein basis functions such as:
(1) Degeneracy: If the shape parameter ω = 0 , the nth-degree SG-Bernstein basis functions are just the traditional Bernstein basis functions.
(2) Non-negativity: For arbitrary ω , λ j , μ j , we have l j , n ( t ) 0 ( j = 0 , 1 , , n ; n 2 ) .
(3) Partition of unity: That is, we have j = 0 n l j , n ( t ) = 1 .
(4) Symmetry: If shape parameters λ j = μ j , we have l n j , n ( t ) = l j , n ( 1 t ) ( j = 1 , 2 , , [ n / 2 ] ) .
(5) Linear independence: For any ω , λ j , μ j , the SG-Bernstein basis functions l j , n ( t ) ( j = 0 , 1 , , n ) satisfy the condition of linear independence.
Figure 1 shows the third-degree SG-Bernstein basis functions with different shape parameters, where the blue lines, red dotted lines, cyan dashed lines, and magenta imaginary lines correspond to the four SG-Bernstein basis functions l 0 , 3 ( t ) , l 1 , 3 ( t ) , l 2 , 3 ( t ) and l 3 , 3 ( t ) , respectively. We can see from Figure 1 that the different shape parameters can produce various shapes for the SG-Bernstein basis functions. Similar to the traditional Bernstein basis, the SG-Bernstein basis also has the property of symmetry. Figure 1a,b shows this feature, respectively (while the curves in Figure 1c,d) do not).

2.2. SG-Bézier Curves of Degree n

Definition 2.
For any given set of the control points P j R d ( d = 2 , 3 ; j = 0 , 1 , , n ) , a family ofparametric curves { ^ t , n } can be defined as follows:
{ ^ t , n } : L n ( t ; λ j , μ j , ω ) = j = 0 n P j l j , n ( t ) ,   ( t [ 0 , 1 ] ) ,
where 0 ω 1 and 0 λ j , μ j ( n + 1 j ) ( j = 0 , 1 , , [ n / 2 ] + 1 ) are the global and local shape parameters of curves { ^ t , n } , respectively. Recall that { l j , n ( t ) } j = 0 n are thenth-degree SG-Bernstein basis functions (1). Therefore, the polynomial curves defined by Equation (2) are called SG-Bézier curves of degreen[23].
Given n + 1 control points P j ( j = 0 , 1 , , n ) , they might produce a set of SG-Bézier curves with various shapes when the shape parameters are changing with the values taken over the corresponding ranges. On the basis of the properties of SG-Bernstein basis functions, it is not difficult to prove that the SG-Bézier curves that were defined in Equation (2) inherit a lot of properties of the classical Bézier curves, as follows:
(1) Degeneracy: If shape parameter ω = 0 , the SG-Bézier curve of degree n degenerates to the classical Bézier curve of degree n.
(2) Symmetry: For any of the given control points P 0 , P 1 , , P n and P 0 * , P 1 * , , P n * , if they satisfy the condition P 0 * = P n , P 1 * = P n 1 , , P n * = P 0 , then the two groups of control points define a common SG-Bézier curve, and they only have the reverse directions. That is:
L n ( t ; λ j , μ j , ω ; P 0 , P 1 , , P n ) = L n ( 1 t ; μ j , λ j , ω ; P 0 * , P 1 * , , P n * ) .  
(3) Convex hull property: The SG-Bézier curve is contained in the convex hull of its defining control points.
(4) Affine invariance: Rotations, translations, and scalings are applied to an SG-Bézier curve by applying them to its control points, that is:
{ L n ( t ; λ j , μ j , ω ; P 0 + Q , P 1 + Q , , P n + Q ) = L n ( t ; λ j , μ j , ω ; P 0 , P 1 , , P n ) + Q L n ( t ; λ j , μ j , ω ; M P 0 , M P 1 , , M P n ) = M L n ( t ; λ j , μ j , ω ; P 0 , P 1 , , P n ) ,
where Q is an arbitrary constant vector in R2 or R3, and M Rk×k (k = 2 or 3) is an arbitrary constant matrix.
Figure 2 shows the SG-Bézier curves of degree 3. We know that SG-Bézier curves have local and global shape parameters by Definition 2. Figure 2a,b thus show the shape adjustment by modifying the global and local shape parameters, respectively. In Figure 2a, the global shape parameters are ω = 0 , 0.5 , 1 from outside to inside; while in Figure 2b, the local shape parameters are    λ 1 = μ 1 = λ 2 = 1 , 2 , 3 from outside to inside.
Theorem 1.
The nth-degree SG-Bézier curve L n ( t ; λ j , μ j , ω ) holds some terminal properties as follows:
{ L n ( 0 ; λ j , μ j , ω ) = P 0 , L n ( 1 ; λ j , μ j , ω ) = P n , L n ( 0 ; λ j , μ j , ω ) = [ n + ω ω λ 1 ] ( P 1 P 0 ) , L n ( 1 ; λ j , μ j , ω ) = [ n + ω ω μ 1 ] ( P n P n 1 ) , L n ( 0 ; λ j , μ j , ω ) = [ n ( n 1 ) + 2 n ω 2 n ω λ 1 ] P 0 [ 2 n ( n 1 ) + 4 n ω 2 n ω λ 1 2 ω λ 2 ] P 1 + [ n ( n 1 ) + 2 n ω 2 ω λ 2 ] P 2 , L n ( 1 ; λ j , μ j , ω ) = [ n ( n 1 ) + 2 n ω 2 n ω μ 1 ] P n [ 2 n ( n 1 ) + 4 n ω 2 n ω μ 1 2 ω μ 2 ] P n 1 + [ n ( n 1 ) + 2 n ω 2 ω μ 2 ] P n 2 .  
Proof. 
On the basis of the definition and properties of the nth-degree SG-Bernstein basis functions { l j , n ( t ) } j = 0 n , we can obtain the following terminal properties:
l j , n ( 0 ) = { 1 , ( j = 0 ) 0 , ( j 0 )  
l j , n ( 1 ) = { 1 , ( j = n ) 0 , ( j n )  
l j , n ( 0 ) = { ( n + ω ω λ 1 ) ,    ( j = 0 ) n + ω ω λ 1 ,    ( j = 1 ) 0 ,    ( j = 2 , 3 , , n )  
l j , n ( 1 ) = { ( n + ω ω μ 1 ) ,    ( j = n 1 ) n + ω ω μ 1 ,    ( j = n ) 0 ,    ( j = 0 , 1 , , n 2 )  
l j , n ( 0 ) = { n ( n 1 ) + 2 n ω 2 n ω λ 1 ,    ( j = 0 ) [ 2 n ( n 1 ) + 4 n ω 2 n ω λ 1 2 ω λ 2 ] ,    ( j = 1 ) n ( n 1 ) + 2 n ω 2 ω λ 2 ,    ( j = 2 ) 0 ,    ( j = 3 , 4 , , n )  
l j , n ( 1 ) = { n ( n 1 ) + 2 n ω 2 n ω μ 1 ,    ( j = n ) [ 2 n ( n 1 ) + 4 n ω 2 n ω μ 1 2 ω μ 2 ] ,    ( j = n 1 ) n ( n 1 ) + 2 n ω 2 ω μ 2 ,    ( j = n 2 ) 0 .    ( j = 0 , 1 , , n 3 )  
The terminal properties of the SG-Bézier curves shown in Equation (3) can be obtained by combining Equations (4)–(9) with the definition of the SG-Bézier curves. This completes the proof of Theorem 1. □

2.3. The Influence of Shape Parameters on the Shapes of SG-Bézier Curves

Besides the above properties, the most outstanding characteristic of the SG-Bézier curve is that it contains n + 1 different shape parameters. We can modify the local and global shape of the curve conveniently by changing its n + 1 shape parameters under the condition that the control points are kept unchanged. Therefore, it is of great important practical significance to study the influence rules of shape parameters on the SG-Bézier curves.
The geometric meaning of the shape parameters ω , λ j , μ j : ① According to the definitions of the SG-Bernstein basis functions in Equation (1), each basis function has the shape parameter ω . Thence, the change of shape parameter ω would affect the value of each basis function, which in turn gives rise to the change of approximation degree of the SG-Bézier curve and each control point. This finally makes the change of the global shape for the SG-Bézier curve. So, we call ω the global shape parameter. ② Since the shape parameters λ j ( j = 1 , 2 , , [ n / 2 ] + 1 ) are merely contained in the adjacent basis functions l j 1 , n ( t ) and l j , n ( t ) , the change of λ j will greatly affect the local shape of the curve nearby P j 1 and P j . In other words, the curve will approach the control point P j 1 and be far away from the control point P j when increasing the values of λ j . Similarly, the change of μ j will greatly affect the local shape of the curve nearby P n j and P n + 1 j , which means that the curve will approach the control point P n + 1 j and be far away from the control point P n j when increasing the values of μ j . So, the shape parameters λ j and μ j are all called the local shape parameters.
Figure 3 shows the SG-Bézier curves of degree 3 with different shape parameters. The corresponding shape parameters for the curves from the top to the bottom in Figure 3a are ω = 0 , 0.3 , 0.6 , 1 , respectively, where the shape parameters λ 1 , λ 2 and μ 1 are fixed. Fixing the shape parameters ω , λ 2 and λ 1 , the other shape parameters for the curves from the top to the bottom in Figure 3b are λ 1 = 1 , 2 , 3 , 4 , respectively. In Figure 3c, the shape parameters ω , λ 2 and λ 1 are fixed, and the other shape parameters for the curves from the top to the bottom are μ 1 = 1 , 2 , 3 , 4 , respectively. In Figure 3d, the corresponding shape parameters for the curves from the right to the left are λ 2 = 0 , 2 , 4 , 6 , while the other shape parameters ω , λ 1 and λ 1 are fixed.
As shown in Figure 3, the global shape of the SG-Bézier curve can be adjusted by altering the global shape parameter ω . In this way, the local shape of the SG-Bézier curve also can be modified by changing other local shape parameters. The effects of all of the shape parameters on the shape of the curve satisfy the above description of geometric significance.

3. Smooth Continuity Conditions of SG-Bézier Curves

In practical applications, we usually encounter some complex curves that cannot be constructed by a single curve. Using the method of piecewise to construct this kind of curve, the first problem is to discuss the continuity conditions between adjacent curves. The continuity conditions for SG-Bézier curves are shown as the following theorem form:

3.1. G1 Smooth Continuity Conditions of SG-Bézier Curves

Theorem 2.
Suppose that any two given adjacent SG-Bézier curves L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) and L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) with the control points P j 1 ( j = 0 , 1 , , n ) and P j ˜ 2 ( j ˜ = 0 , 1 , , m ) reach G1smooth continuity at the common joint; then, they match the necessary and sufficient conditions as follows:
{ P 0 2 = P n 1 , P 1 2 = [ 1 + n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) ] P n 1 n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) P n 1 1 .  
where ζ > 0 is a constant, and ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) and ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) are the shape parameters of the curves L n ( t ) and L m ( t ) , satisfying that m + ω 2 ω 2 λ 1 , 2 0 .
Proof. 
According to Equation (2), we suppose the two splicing SG-Bézier curves that need to be smooth joining are defined as follows:
L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) = j = 0 n P j 1 l j , n ( t ) , ( j = 0 , 1 , , n , n 2 ) ,  
L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) = j ˜ = 0 m P j ˜ 2 l j ˜ , m ( t ) , ( j ˜ = 0 , 1 , , m , m 2 ) .  
If the SG-Bézier curves L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) and L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) need to achieve G1 continuity, they are required to achieve G0 continuity at a common joint in the first place. This signifies that one needs to combine the end of L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) with the beginning of L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) , that is:
L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) .  
Equation (13) above can be simplified to Equation (14) as follows in terms of the terminal properties of Equation (3):
P n 1 = P 0 2 .
Equation (14) shows that the two curves reach G0 continuity at a common joint firstly.
Furthermore, for the two splicing SG-Bézier curves, the second condition of the same tangent direction at the joint should be satisfied, that is:
L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = ζ L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) , ( ζ > 0 ) .
Equation (15) above can be simplified to Equation (16) as follows on the basis of the terminal properties of the SG-Bézier curve in Theorem 1:
{ L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = ( n + ω 1 ω 1 μ 1 , 1 ) ( P n 1 P n 1 1 ) , L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) = ( m + ω 2 ω 2 λ 1 , 2 ) ( P 1 2 P 0 2 ) .  
Plugging Equation (16) into Equation (15), we have:
P 1 2 = [ 1 + n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) ] P n 1 n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) P n 1 1 .  
Here, ζ > 0 is a constant, and m + ω 2 ω 2 λ 1 , 2 0 .
In summary, if these two curves satisfy Equations (14) and (17) simultaneously, then they reach G1 smooth continuity at the common joint, and hence Theorem 2 is proved. □
Specifically, let us set α = 1 . Then, (10) is equal to:
{ P 0 2 = P n 1 , P 1 2 = [ 1 + n + ω 1 ω 1 μ 1 , 1 m + ω 2 ω 2 λ 1 , 2 ] P n 1 n + ω 1 ω 1 μ 1 , 1 m + ω 2 ω 2 λ 1 , 2 P n 1 1 .  
That is, the G1 continuity conditions will degenerate into the C1 continuity conditions when we set α = 1 , and the signs in Equation (18) are the same as that in Equation (10).

3.2. G2 Smooth Continuity Conditions of SG-Bézier Curves

Theorem 3.
For any two splicing SG-Bézier curves L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) and L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) with the control points P j 1 ( j = 0 , 1 , , n ) and P j ˜ 2 ( j ˜ = 0 , 1 , , m ) , respectively, they meet the G2smooth continuity if and only if:
{ P 0 2 = P n 1 , P 1 2 = [ 1 + n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) ] P n 1 n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) P n 1 1 , P 2 2 = 1 c { [ n ( n 1 ) + 2 n ω 1 2 n ω 1 μ 1 , 1 ] ζ 2 [ m ( m 1 ) + 2 m ω 2 2 m ω 2 λ 1 , 2 ]    + ψ ( m + ω 2 ω 2 λ 1 , 2 ) b ( 1 + a ) } P n 1 1 c [ 2 n ( n 1 ) + 4 n ω 1 2 n ω 1 μ 1 , 1 2 ω 1 μ 2 , 1 a b ] P n 1 1    + 1 c [ n ( n 1 ) + 2 n ω 1 2 ω 1 μ 2 , 1 ] P n 2 1 .  
where ζ > 0 is a constant, ψ is an arbitrary constant, and m + ω 2 ω 2 λ 1 , 2 0 .
Here, a = n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) , c = ζ 2 [ m ( m 1 ) + 2 m ω 2 2 ω 2 λ 2 , 2 ] , and b = ψ ( m + ω 2 ω 2 λ 1 , 2 ) ζ 2 [ 2 m ( m 1 ) + 4 m ω 2 2 m ω 2 λ 1 , 2 2 ω 2 λ 2 , 2 ] .
Proof. 
If the SG-Bézier curves L n and L m achieve G2 continuity, they are required to achieve G1 continuity at a common joint in the first place, which satisfies:
{ P n 1 = L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) = P 0 2 , L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = ζ L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) . ( ζ > 0 )  
Assuming the vice-normal vector is H 1 for L n at t = 1 and H 2 for L m at t = 0 , then we have:
{ H 1 = L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) × L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) , H 2 = L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) × L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) .  
Then, the G2 continuity requires that the vice-normal vector L n has the same direction at the joint as L m . According to Equations (16) and (20), we can obtain the four vectors L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) , L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) , L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) , and L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) , which are coplanar. Thus, using Equation (20), we have:
L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = β L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) + ψ L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) ,  
where β > 0 is an arbitrary constant.
Suppose that the curvatures of the curves L n and L m are κ 1 ( 1 ) and κ 2 ( 0 ) , respectively, we obtain:
{ κ 1 ( 1 ) = | L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) × L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) | | L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) | 3 , κ 2 ( 0 ) = | L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) × L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) | | L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) | 3 .  
According to the Equations (20), (22), and (23), the curvature κ 2 ( 0 ) is equal to:
κ 2 ( 0 ) = | L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) × L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) | | L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) | 3 = | 1 ζ L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) × [ 1 β L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) ψ β ζ L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) ] | 1 ζ 3 | L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) | 3 = ζ 2 | L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) × L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) | β | L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) | 3 .
As G2 continuity requires that the value of the curvatures κ 1 ( 1 ) is equal to the value of κ 2 ( 0 ) , i.e., κ 1 ( 1 ) = κ 2 ( 0 ) . Combining with Equations (23) and (24), we see that β = ζ 2 . Substituting β into Equation (22), we have:
L n ( 1 ; λ j , 1 , μ j , 1 , ω 1 ) = ζ 2 L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) + ψ L m ( 0 ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) .  
The tangent vectors of L n and L m can be computed easily on the basis of the terminal properties of the SG-Bézier curve given in Theorem 1; substituting them into Equation (25) yields:
P 2 2 = 1 c { [ n ( n 1 ) + 2 n ω 1 2 n ω 1 μ 1 , 1 ] ζ 2 [ m ( m 1 ) + 2 m ω 2 2 m ω 2 λ 1 , 2 ] + ψ ( m + ω 2 ω 2 λ 1 , 2 ) b ( 1 + a ) } P n 1 1 c [ 2 n ( n 1 ) + 4 n ω 1 2 n ω 1 μ 1 , 1 2 ω 1 μ 2 , 1 a b ] P n 1 1 + 1 c [ n ( n 1 ) + 2 n ω 1 2 ω 1 μ 2 , 1 ] P n 2 1 ,
where a = n + ω 1 ω 1 μ 1 , 1 ζ ( m + ω 2 ω 2 λ 1 , 2 ) , c = ζ 2 [ m ( m 1 ) + 2 m ω 2 2 ω 2 λ 2 , 2 ] , and b = ψ ( m + ω 2 ω 2 λ 1 , 2 ) ζ 2 [ 2 m ( m 1 ) + 4 m ω 2 2 m ω 2 λ 1 , 2 2 ω 2 λ 2 , 2 ] .
To sum up, the two splicing SG-Bézier curves reach G2 smooth continuity at a common joint if they meet Equations (20) and (26) simultaneously, thus proving Theorem 3. □
In particular, let ζ = 1 , ψ = 0 in (19). We see that Equation (19) becomes:
{ P 0 2 = P n 1 , P 1 2 = [ 1 + n + ω 1 ω 1 μ 1 , 1 m + ω 2 ω 2 λ 1 , 2 ] P n 1 n + ω 1 ω 1 μ 1 , 1 m + ω 2 ω 2 λ 1 , 2 P n 1 1 , P 2 2 = 1 c ˜ { [ n ( n 1 ) + 2 n ω 1 2 n ω 1 μ 1 , 1 ] [ m ( m 1 ) + 2 m ω 2 2 m ω 2 λ 1 , 2 ] b ˜ ( 1 + a ˜ ) } P n 1 1 c ˜ [ 2 n ( n 1 ) + 4 n ω 1 2 n ω 1 μ 1 , 1 2 ω 1 μ 2 , 1 a ˜ b ˜ ] P n 1 1 + 1 c ˜ [ n ( n 1 ) + 2 n ω 1 2 ω 1 μ 2 , 1 ] P n 2 1 .  
where a ˜ = n + ω 1 ω 1 μ 1 , 1 m + ω 2 ω 2 λ 1 , 2 , b ˜ = [ 2 m ( m 1 ) + 4 m ω 2 2 m ω 2 λ 1 , 2 2 ω 2 λ 2 , 2 ] , c ˜ = m ( m 1 ) + 2 m ω 2 2 ω 2 λ 2 , 2 .
Obviously, when ζ = 1 , ψ = 0 , the G2 continuity conditions in Equation (19) will degenerate to the corresponding C2 continuity conditions in Equation (27).

4. Steps and Examples of Smooth Continuity for SG-Bézier Curves

4.1. The Concrete Steps of Smooth Joining between Two SG-Bézier Curves

According to the smooth continuity conditions between two splicing SG-Bézier curves discussed above, and combining with the shape adjustability of the SG-Bézier curves, now we will give the concrete steps of G2 smooth joining between SG-Bézier curves. Meanwhile, other smooth continuity conditions can be carried out similarly.
The concrete steps for G2 smooth continuity between two splicing SG-Bézier curves can be given as follows in terms of Theorem 2:
Step 1. For any degree n, we give the initial curve L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) with the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) and the control points P j 1 ( j = 0 , 1 , , n ) .
Step 2. Set P 0 2 = P n 1 , so that L n ( t ; λ j , 1 , μ j , 1 , ω 1 ) and L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) achieve the G0 continuity at their common joint.
Step 3. For any given degree m, shape parameters ω 2 , λ 1 2 of L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) and constant ζ > 0 , they should satisfy the equation m + ω 2 ω 2 λ 1 , 2 0 . Based on the second equation in Equation (19), we can compute the second control point P 1 2 of L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) .
Step 4. Based on steps (2) and (3), we can compute the third control point P 2 2 of L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) by using the third equation in Equation (19), once we give an arbitrary constant ψ and shape parameter λ 2 2 .
Step 5. Finally, the G2 smooth continuity between two splicing SG-Bézier curves can be achieved if we freely give the remaining m-2 shape parameters and control points of L m ( t ; λ j ˜ , 2 , μ j ˜ , 2 , ω 2 ) .
Apparently, a complex SG-Bézier curve with G2 smooth continuity can be obtained by repeating the steps above.

4.2. Examples of C1, G1 Smooth Continuity between SG-Bézier Curves

Figure 4 shows an example of ‘flower’ modeling, which is constructed by multiple third-degree SG-Bézier curves with C1 smooth continuity. Given the initial blue SG-Bézier curve of degree 3, the red SG-Bézier curve of degree 3 is constructed by the continuity conditions in Equation (18), with the blue curve reaching C1 smooth continuity. The shape parameters for these two SG-Bézier curves of degree 3 are λ 1 , 1 = μ 1 , 1 = λ 1 , 2 = μ 1 , 2 = 2 , λ 2 , 1 = λ 2 , 2 = 3 and ω 1 = ω 2 = 0.5 , with the scale factor ζ = 1 . Note that the control polygons and control points of each SG-Bézier curve are denoted as broken lines and circular points, respectively; and similarly hereinafter.
Figure 5 shows an example of ‘fish’ modeling, where the main structure is composed of the cubic and quartic SG-Bézier curves reaching G1 smooth continuity. Given the initial blue SG-Bézier curve of degree 3, the red SG-Bézier curve of degree 4 is constructed by the G1 continuity conditions in Equation (10), with the blue curves reaching G1 smooth continuity. The local and global shape parameters for the cubic and quartic SG-Bézier curves are λ 1 , 2 = μ 1 , 2 = 5 , λ 1 , 1 = μ 1 , 1 = λ 2 , 1 = 4 , λ 2 , 2 = μ 2 , 2 = 8 , and ω 1 = ω 2 = 0.5 , with the scale factor ζ = 1 / 2 . We can see from Figure 5 that the overall modeling of the ‘fish’ are smooth and natural.

4.3. Examples of C2, G2 Smooth Continuity between SG-Bézier Curves

Figure 6 shows an example of ‘cetacean’ modeling, which was constructed by the cubic and quartic SG-Bézier curves. Given the initial blue SG-Bézier curve of degree 3, the red SG-Bézier curve of degree 4 is constructed by the C2 continuity conditions in Equation (27) with the blue curves reaching C2 smooth continuity. The shape parameters for these two SG-Bézier curves are ω 1 = ω 2 = 0.5 , λ 1 , 1 = μ 1 , 1 = 3 , λ 1 , 2 = μ 1 , 2 = 4 , and λ 2 , 1 = 5 , λ 2 , 2 = μ 2 , 2 = 8 , with the scale factors ζ = 1 , ψ = 0 .
Figure 7 shows an example of ‘mouse’ modeling, which was constructed by two cubic SG-Bézier curves. The red curve is the given initial SG-Bézier curve of degree 3, and the blue SG-Bézier curve of degree 3 is constructed by G2 continuity conditions in Equation (19), with the red curve reaching G2 smooth continuity. The shape parameters for these two cubic SG-Bézier curves are λ 1 , 1 = λ 1 , 2 = μ 1 , 1 = μ 1 , 2 = 3 , λ 2 , 1 = λ 2 , 2 = 5 , and ω 1 = ω 2 = 0.5 , with the scale factors ζ = 1 , ψ = 1 / 2 . In addition, the line of curvature corresponding to Figure 7 plotted in Figure A1 visually supports the claim on G2 continuity (see Appendix A).
Figure 8 shows the influence of two scale factors on the shapes of the curves based on Figure 7b. The blue one is the curve before the scale factors are ready to make a modification, while the green one is the curve after each change in the values of the scale factors. The shape parameters in Figure 8 are the same as that in Figure 7b. As seen from Equation (10) and Figure 8a, for the second curve in the splicing curve, on the basis of the other control points and G2 smooth continuity of the splicing curve remaining unchanged, the value of the scale factor ζ will change the position of the second and third control points. Similarly, Figure 8b shows the change of the third control point of the second curve in the splicing curve by altering the scale factor ψ . Analogously, the broken lines and circular points in Figure 8 represent the control polygons and control points of each SG-Bézier curve, respectively. Notice that the asterisks labeled on the control polygon denote the altered control points.

5. Shape Adjustment of the Composite SG-Bézier Curves with Smooth Continuity

According to the definition of the SG-Bézier curve, an SG-Bézier curve has one global and multiple local shape parameters. In view of this, we can modify the local or global shape under the precondition that the G1, G2 and C1, C2 smooth continuity of the composite curves remain unchanged. In what follows, we shall discuss the shape adjustability of the composite SG-Bézier curves with G1, G2 and C1, C2 continuity, which were constructed by two SG-Bézier curves. Moreover, a similar discussion can be carried out on the multiple curves case.

5.1. Shape Adjustment of the Composite SG-Bézier Curves with C1 or G1 Smooth Continuity

Proposition 1.
For a composite SG-Bézier curve with C1smooth continuity, some significant conclusions can be obtained when keeping its control points and C1smooth continuity unchanged.
(1) We can adjust the local shape of the composite curve by altering λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , μ j , 1 ( j = 2 , 3 , , [ n / 2 ] + 1 ) (or λ j ˜ , 2 ( j ˜ = 2 , 3 , , [ m / 2 ] + 1 ), μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) ).
(2) We can modify the global shape of a composite curve by altering ω 1 , μ 1 , 1 and ω 2 , λ 1 , 2 (or the parameters λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , μ j , 1 ( j = 2 , 3 , , [ n / 2 ] + 1 ) , and λ j ˜ , 2 ( j ˜ = 2 , 3 , , [ m / 2 ] + 1 ) , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) ) to achieve the global shape adjustment of the splicing curve. Here, at least one of the shape parameters ω 1 , μ 1 , 1 (respectively ω 2 , λ 1 , 2 ) should be changed.
Proof. 
As the C1 continuity conditions of Equation (18) just involve the shape parameters ω 1 , μ 1 , 1 and ω 2 , λ 1 , 2 , then we can modify the local shape by altering the shape parameters that are not contained in Equation (18). Thus, conclusion (1) is proved. On the other hand, if we change at least one of the shape parameters ω 1 , μ 1 , 1 , then at least one of the shape parameters ω 2 , λ 1 , 2 should be changed to ensure that the C1 smooth continuity is maintained unchanged for the splicing curve (to modify the shape parameters in terms of the second equation in Equation (18)). Therefore, the global shape adjustment of the splicing curve can be achieved by changing the values of the shape parameters: μ j , 1 ( j = 2 , 3 , , [ n / 2 ] + 1 ) , λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , and λ j ˜ , 2 ( j ˜ = 2 , 3 , , [ m / 2 ] + 1 ) , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) . This completes the proof of Proposition 1. □
Proposition 2.
Keeping the G1smooth continuity between splicing curves unchanged, we have:
(1) We can modify the local shape of the composite curve by altering the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) or ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) .
(2) We can modify the global shape of the composite curve by altering the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) and ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) at the same time.
Proof. 
According to equations (15) and (3), G1 continuity merely requires that the tangent directions at the common joint of the two splicing SG-Bézier curves are the same, that is:
( n + ω 1 ω 1 μ 1 , 1 ) ( P n 1 P n 1 1 ) = ζ ( m + ω 2 ω 2 λ 1 , 2 ) ( P 1 2 P 0 2 ) ( ζ > 0 ) .
This shows that altering any of the shape parameters of part of the curves simply exerts an influence on the size of the tangent vector without changing its direction. So, the global or local shape can be adjusted once we change the shape parameters of part of the curves while keeping the control points and G1 smooth continuity the same. Thus, Proposition 2 is proven. □

5.2. Modeling Examples of Shape Adjustment for the Composite SG-Bézier Curves with C1 or G1 Smooth Continuity

Figure 9 shows the C1 smooth continuity of two SG-Bézier curves. In Figure 9, the blue curve is the pre-given SG-Bézier curve, and the red SG-Bézier curve is now constructed by the continuity conditions in Equation (18). The shape parameters are λ 1 , 1 = μ 1 , 1 = λ 1 , 2 = μ 1 , 2 = 2 , λ 2 , 1 = λ 2 , 2 = 3 and ω 1 = ω 2 = 1 . Figure 9b shows the local shape adjustment of the composite curve just by modifying one shape parameter λ 1 , 1 . The upper part of the splicing curve is now modified, where the shape parameters of solid lines, dashed lines, and dotted lines are λ 1 , 1 = 3 , 1.5 , 0 , respectively. Figure 9c shows the local shape adjustment by altering the shape parameters μ 1 , 2 , and now, the lower part of the splicing curve is modified, with the shape parameters μ 1 , 2 = 3 (solid lines), μ 1 , 2 = 1.5 (dashed lines), and μ 1 , 2 = 0 (dotted lines). We see that the global shape adjustment can be achieved in Figure 9d by changing the shape parameters ω 1 , ω 2 and μ 1 , 1 , μ 1 , 2 , with the shape parameters ω 1 = ω 2 = 1 , μ 1 , 1 , μ 1 , 2 = 3 (solid lines), ω 1 = ω 2 = 0.8 , μ 1 , 1 , μ 1 , 2 = 2 (dashed lines), and ω 1 = ω 2 = 0.1 , μ 1 , 1 , μ 1 , 2 = 2 (dotted lines). The rest of the shape parameters are equal to those in Figure 9a, expect that they are modified in the other three figures.
Figure 10 shows the local and global shape adjustment of the composite SG-Bézier curves with G1 smooth continuity. In Figure 10a, the G1 smooth continuity and the shape parameters are the same as that in Figure 5b. Figure 10b shows the global shape adjustment by altering the shape parameters ω 1 , λ 1 , 1 , μ 1 , 1 , λ 2 , 1 . Now, we only adjust the left part of the splicing curve with the shape parameters ω 1 = 0.5 , λ 1 , 1 = 4 , μ 1 , 1 = 4 , λ 2 , 1 = 4 (solid lines), ω 1 = 0.2 , λ 1 , 1 = 2 , μ 1 , 1 = 2 , λ 2 , 1 = 2 (dashed lines), and ω 1 = 1 , λ 1 , 1 = 1 , μ 1 , 1 = 0 , λ 2 , 1 = 0 (dotted lines). Figure 10c shows the graph of the local adjustment for the splicing curve by modifying shape parameters ω 2 , λ 1 , 2 , μ 1 , 2 , λ 2 , 2 , μ 2 , 2 , where we only make a adjustment for the right part of the splicing curve with the shape parameters μ 1 , 2 = 5 , λ 2 , 2 = 8 , μ 2 , 2 = 8 (solid lines), ω 2 = 1 , λ 1 , 2 = 4.5 , μ 1 , 2 = 5 , λ 2 , 2 = 10 , μ 2 , 2 = 10 (dashed lines), and ω 2 = 0 , λ 1 , 2 = 0.5 , μ 1 , 2 = 0.5 , λ 2 , 2 = 0.5 , μ 2 , 2 = 0.5 (dotted lines). Figure 10d shows the graph of the global adjustment by changing the shape parameters ω 1 , λ 1 , 1 , μ 1 , 1 , λ 2 , 1 , ω 2 , λ 1 , 2 , μ 1 , 2 , λ 2 , 2 , μ 2 , 2 , with the shape parameters ω 1 = 0.5 , λ 1 , 1 = 4 , μ 1 , 1 = 4 , λ 2 , 1 = 4 , ω 2 = 0.5 , λ 1 , 2 = 5 , μ 1 , 2 = 5 , λ 2 , 2 = 8 , μ 2 , 2 = 8 (solid lines), ω 1 = 1 , λ 1 , 1 = 4 , μ 1 , 1 = 4 , λ 2 , 1 = 6 , ω 2 = 1 , λ 1 , 2 = 4.5 , μ 2 , 2 = 10 , μ 1 , 2 = 5 , λ 2 , 2 = 10 (dashed lines), and ω 1 = 0 , λ 1 , 1 = 1 , μ 1 , 1 = 1 , λ 2 , 1 = 0 , ω 2 = 0 , λ 1 , 2 = 1 , μ 1 , 2 = 1 , λ 2 , 2 = 1 , μ 2 , 2 = 1 (dotted lines). The rest of the shape parameters are the same as those in Figure 10a, expect for those that are modified in Figure 10.

5.3. Shape Adjustment of the Composite SG-Bézier Curves with C2 or G2 Smooth Continuity

Proposition 3.
Suppose that the control points and C2smooth continuity for the splicing curve remain unchanged, we have the following conclusions:
(1) We can alter the local shape of a composite curve by adjusting shape parameters λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , μ j , 1 ( j = 3 , 4 , , [ n / 2 ] + 1 ) or λ j ˜ , 2 ( j ˜ = 3 , 4 , , [ m / 2 ] + 1 ) , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) .
(2) We can alter the global shape of a composite curve by changing the parameters λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) (or μ j , 1 ( j = 3 , 4 , , [ n / 2 ] + 1 ) ) and λ j ˜ , 2 ( j ˜ = 3 , 4 , , [ m / 2 ] + 1 ) (or μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) ) simultaneously. In addition, in the sole situation where the C2smooth continuity is kept unchanged, the global shape of the composite curve can also be adjusted by modifying the following shape parameters and control points:
① By changing the two shape parameters ω 1 and ω 2 , as well as two control points P 1 2 and P 2 2 .
② By modifying the shape parameters ω 1 , ω 2 , μ 1 , 1 (or μ 1 , 1 , μ 2 , 1 ) and the control points P 1 2 , P 2 2 ; or altering the shape parameters ω 1 , ω 2 , λ 1 , 2 (or λ 1 , 2 , λ 2 , 2 ) and the control points P 1 2 , P 2 2 ; or changing the shape parameters ω 1 , ω 2 , μ 1 , 1 (or μ 1 , 1 , μ 2 , 1 ) and λ 1 , 2 (or λ 1 , 2 , λ 2 , 2 ), and the control points P 1 2 , P 2 2 .
③ By altering the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) and ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) and the control points P 1 2 and P 2 2 .
Here, we can calculate the control points P 1 2 and P 2 2 according to the second and third equation in Equation (27).
Proof. 
According to the C2 continuity conditions in Equation (27), if the control points and C2 smooth continuity remain unchanged, we can alter the local shape of the composite curve by changing these shape parameters, which are not included in the conditions in Equation (27). Thus, conclusion (1) is proved. □
As the conditions in Equation (27) involve the global shape parameters ω 1 , ω 2 and local shape parameters μ 1 , 1 , μ 2 , 1 , λ 1 , 2 , λ 2 , 2 , we merely change these shape parameters (apparently these parameters are not included in smooth continuity conditions) to adjust the shape of the composite curve while keeping the control points and C2 smooth continuity the same. Now, we only adjust the local shape of the composite curve. So, we cannot modify the global shape only by altering the shape parameters. As ω 1 and ω 2 are the global shape parameters, we might alter the two control points P 1 2 and P 2 2 simultaneously to ensure that C2 smooth continuity is unchanged once we adjust the global shape by changing ω 1 and ω 2 . Similarly, as the C2 smooth continuity conditions involve the parameters ω 1 , ω 2 , μ 1 , 1 , μ 2 , 1 , λ 1 , 2 and λ 2 , 2 , we can adjust the global shape of the two parts that go beyond the splicing curve by modifying the shape parameters ω 1 , μ 1 , 1 , μ 2 , 1 and ω 2 , λ 1 , 2 , λ 2 , 2 , as well as the two control points P 1 2 and P 2 2 to ensure that the C2 smooth continuity is unchanged. Obviously, the global shape adjustment can be achieved by modifying the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) , and the control points P 1 2 and P 2 2 . Thus, conclusion (2) is proved. This completes the proof of Proposition 3.
Proposition 4.
For a composite SG-Bézier curve with G2smooth continuity, some significant conclusions can be obtained when keeping its control points and G2smooth continuity unchanged.
(1) We can modify the local shape of the composite curve by changing the shape parameters λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) , μ j , 1 ( j = 3 , 4 , , [ n / 2 ] + 1 ) or λ j ˜ , 2 ( j ˜ = 3 , 4 , , [ m / 2 ] + 1 ) , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) .
(2) The global shape of a composite curve can be altered by changing the parameters λ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) (or μ j , 1 ( j = 3 , 4 , , [ n / 2 ] + 1 ) ) and λ j ˜ , 2 ( j ˜ = 3 , 4 , , [ m / 2 ] + 1 ) (or μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) ) simultaneously. Moreover, if only the G2smooth continuity remains unchanged, we can modify the global shape of the composite curve by altering the following shape parameters and control points:
① By altering the shape parameters ω 1 and ω 2 , as well as the control points P 1 2 and P 2 2 .
② By modifying shape parameters ω 1 , ω 2 , μ 1 , 1 (or μ 1 , 1 , μ 2 , 1 ) and the control points P 1 2 and P 2 2 ; or modifying shape parameters ω 1 , ω 2 , λ 1 , 2 (or λ 1 , 2 , λ 2 , 2 ) and the control points P 1 2 and P 2 2 ; or modifying shape parameters ω 1 , ω 2 , μ 1 , 1 (or μ 1 , 1 , μ 2 , 1 ), λ 1 , 2 (or λ 1 , 2 , λ 2 , 2 ) and the control points P 1 2 and P 2 2 ;
③ By modifying the shape parameters ω 1 , λ j , 1 , μ j , 1 ( j = 1 , 2 , , [ n / 2 ] + 1 ) and ω 2 , λ j ˜ , 2 , μ j ˜ , 2 ( j ˜ = 1 , 2 , , [ m / 2 ] + 1 ) , as well as two control points P 1 2 and P 2 2 .
Here, we can calculate the control points P 1 2 and P 2 2 according to the second and third equation in Equation (19).
Proof. 
Proposition 4 can follow by the similar argument in Proposition 3. Thus, we omit the proof. □

5.4. Examples of Shape Adjustment between SG-Bézier Curves with C2 and G2 Smooth Continuity

Figure 11 gives an example to show the C2 smooth continuity between two SG-Bézier curves of degree 3. In this figure, the blue curve is the given SG-Bézier curve, and the red curve is constructed by the continuity conditions in Equation (27), which together with the blue curve reaches C2 smooth continuity. The solid lines denote the curves before adjustment, while the dashed lines and dotted lines denote the curves after the adjustment of the shape parameters. The circular points denote the points before adjustment, and the asterisks indicate the modified control points. The shape parameters in Figure 11a are ω 1 = 1 , λ 1 , 1 = 2 , μ 1 , 1 = 2 , λ 2 , 1 = 3 and ω 2 = 0.5 , λ 1 , 2 = 4 , μ 1 , 2 = 4 , λ 2 , 2 = 3 . Figure 11b displays the global shape adjustment of the composite curve by altering the shape parameters λ 1 , 1 , λ 2 , 1 , where the shape parameters for the solid lines, dashed lines, and dotted lines are λ 1 , 1 = 2 , λ 2 , 1 = 3 , λ 1 , 1 = 0 , λ 2 , 1 = 0 , and λ 1 , 1 = 4 , λ 2 , 1 = 6 , respectively. Figure 11c displays the local shape adjustment by using a single shape parameter μ 1 , 2 , where the shape parameters are μ 1 , 2 = 4 (solid lines), μ 1 , 2 = 2 (dashed lines), and μ 1 , 2 = 0 (dotted lines), respectively. Based on Figure 11a, Figure 11d illustrates the global shape adjustment by modifying the shape parameters ω 1 , ω 2 , λ 1 , 2 . From the figure, we realize the global shape adjustment for the dashed lines merely using the shape parameters ω 1 , ω 2 (with ω 1 = ω 2 = 0.1 ), and the dotted lines by changing shape parameters ω 1 , ω 2 , λ 1 , 2 (with ω 1 = 0.5 , ω 2 = 0.8 , λ 1 , 2 = 3 ) . The rest of the shape parameters are equal to those in Figure 11a expect for the ones that are modified in the other three figures.
Figure 12 shows the shape adjustment of G2 smooth continuity between the two SG-Bézier curves of degree 3. The shape parameters in Figure 12a are the same as those in Figure 7b. As argued in the paragraph above, the solid line means the curves before adjustment, while the dotted lines and dashed lines are the curves after the shape parameters are changed. The circular points in Figure 12 denote the control points before adjustment, and the asterisks marked on the control polygon are the modified control points. Figure 12b displays the local shape adjustment by changing the shape parameters λ 1 , 1 , λ 2 , 1 , with the shape parameters λ 1 , 1 = 3 , λ 2 , 1 = 5 (solid lines), λ 1 , 1 = 2 , λ 2 , 1 = 2 (dashed lines), and λ 1 , 1 = 0 , λ 2 , 1 = 0 (dotted lines). Figure 12c illustrates the local shape adjustment by using a single shape parameter μ 1 , 2 , with the shape parameter μ 1 , 2 = 3 (solid lines), μ 1 , 2 = 1.5 (dashed lines) and μ 1 , 2 = 0 (dotted lines). Figure 12d gives an example showing the global shape adjustment by modifying the shape parameters ω 1 , ω 2 , μ 1 , 1 . The dashed lines achieve the global shape adjustment merely by using the shape parameters ω 1 , ω 2 (with ω 1 = 0.8 , ω 2 = 0.1 ). The dotted lines realize the global shape adjustment in Figure 12d by altering the shape parameters ω 1 , ω 2 , μ 1 , 1 (with ω 1 = 0.2 , ω 2 = 0.8 , μ 1 , 1 = 1 ). The rest of the shape parameters are all equal to those in Figure 12a expect for the ones that are modified in the other three figures.

6. Applications

In the field of the development of CAD/CAM application software, the SG-Bézier curves provide a new powerful tool in mathematical theory as an extension of the traditional Bézier curves, which play a key role in many areas such as computer animation, computer vision, computer graphics, the manufacturing industry, and multimedia technology. In CAD/CAM, if the apparent surface of a product is a complex composite curve, the curve needs to be treated as a piecewise curve composed of multiple ones.
In order to demonstrate the approaches that can be applied to complex curve design, we will give two practical applications in this section. In computer graphics, the generation technology for different types of Chinese fonts has always been an important research topic. Figure 13 gives an example to design the curves for the script form of the Chinese character “long”, which means Chinese dragon. Figure 13a is a copy of the Chinese script of “long” drawn using the drawing software INKSCAPE. In Figure 13b, the graph of the Chinese character “long” is composed of nine SG-Bézier curves. Figure 13c,d shows the local and global deformation of the graph in Figure 13b by changing the shape parameters, respectively.
Figure 14 displays an example to design the curve graph of a goose by using SG-Bézier curves. In this figure, the shape curves are composed of 13 SG-Bézier curves with different shape parameters.

7. Conclusions

In order to resolve the problem that complex curves can not be constructed by a single curve, we give the C1, C2 and G1, G2 smooth continuity conditions for two adjacent nth-degree SG-Bézier curves, and study the effect of shape parameters on the shapes of the composite curves. Moreover, we give the concrete steps of G2 smooth continuity between SG-Bézier curves. Furthermore, we utilize some practical examples to verify the validity of the proposed continuity conditions. The theoretical analysis and modeling examples show that our proposed continuity conditions between two SG-Bézier curves are not only easy to carry out, they also make the shapes of the curves adjusted more conveniently under these conditions. This paper provides an effective scheme for the shape design and construction of complex curves in the engineering that encode the value in the future applications. Notice that the introduction of shape parameters not only brings an advantage to the shape modification of composite SG-Bézier curves, it also provides optimized parameters for the shape optimization design of the SG-Bézier ones. Therefore, the research on how to utilize the genetic algorithm [26] to solve the model of curve shape optimization, which takes the shape parameters as the optimization variables, will be addressed in our future work.

Author Contributions

Conceptualization, G.H. and G.W.; Methodology, G.H. and C.B.; Software, C.B. and J.W.; Validation, G.H.; Formal Analysis, G.H.; Investigation, C.B.; Resources, G.H.; Data Curation, F.H.; Writing-Original Draft Preparation, G.H. and C.B.; Writing-Review & Editing, G.H., J.W. and G.W.; Visualization, C.B. and J.W.; Supervision, G.H., G.W. and F.H.; Funding Acquisition, G.H.

Funding

This research was funded by the National Natural Science Foundation of China Grant No. 51875454 and the Key Research and Development Program of Shaanxi Province of China Grant No.2017GY-090.

Acknowledgments

We thank to the anonymous reviewers for their insightful suggestions and recommendations, which led to the improvements of presentation and content of the paper.

Conflicts of Interest

The authors declare that they have no conflict of interest.

Appendix A. The Curvature of Composite SG-Bézier Curves in Figure 7

Figure A1. The curvature of composite SG-Bézier curves with constraint of G2 continuitiy.
Figure A1. The curvature of composite SG-Bézier curves with constraint of G2 continuitiy.
Symmetry 10 00545 g0a1

References

  1. Farin, G. Curves and Surfaces for CAGD: A Practical Guide, 5th ed.; Academic Press: San Diego, CA, USA, 2002. [Google Scholar]
  2. Mamar, E. Shape preserving alternatives to the rational Bézier model. Comput. Aided Geom. Des. 2001, 18, 37–60. [Google Scholar] [CrossRef]
  3. Farin, G.; Hoschek, J.; Kim, M.S. Handbook of Computer Aided Geometric Design; Elsevier: Amsterdam, The Netherlands, 2002. [Google Scholar]
  4. Ahn, Y.J.; Lee, B.; Park, Y.; Yoo, J. Constrained polynomial degree reduction in the L2-norm equals best weighted Euclidean approximation of Bézier coefficients. Comput. Aided Geom. Des. 2004, 21, 181–191. [Google Scholar] [CrossRef]
  5. Ait-Haddou, R.; Barton, M. Constrained multi-degree reduction with respect to Jacobi norms. Comput. Aided Geom. Des. 2016, 42, 23–30. [Google Scholar] [CrossRef] [Green Version]
  6. Oruc, H.; Phillips, G.H. q-Bernstein polynomials and Bézier curves. J. Comput. Appl. Math. 2003, 151, 1–12. [Google Scholar] [CrossRef]
  7. Wang, W.T.; Wang, G.Z. Bézier curve with shape parameter. J. Zhejiang Univ. Sci. A 2005, 6, 497–501. [Google Scholar]
  8. Yan, L.L.; Liang, J.F. An extension of the Bézier model. Appl. Math. Comput. 2011, 218, 2863–2879. [Google Scholar] [CrossRef]
  9. Chu, L.C.; Zeng, X.M. Constructing curves and triangular patches by Beta functions. J. Comput. Appl. Math. 2014, 260, 191–200. [Google Scholar] [CrossRef]
  10. Farin, G. Class a Bézier curves. Comput. Aided Geom. Des. 2006, 23, 573–581. [Google Scholar] [CrossRef]
  11. Cao, J.; Wang, G.Z. A note on class a Bézier curves. Comput. Aided Geom. Des. 2008, 25, 523–528. [Google Scholar] [CrossRef]
  12. Yang, L.Q.; Zeng, X.M. Bézier curves and surfaces with shape parameter. Int. J. Comput. Math. 2009, 86, 1253–1263. [Google Scholar] [CrossRef]
  13. Hu, G.; Cao, H.X.; Zhang, S.X.; Guo, W. Developable Bézier-like surfaces with multiple shape parameters and its continuity conditions. Appl. Math. Model. 2017, 45, 728–747. [Google Scholar] [CrossRef]
  14. Liu, Z.; Chen, X.; Jiang, P. A class of generalized Bézier curves and surfaces with multiple shape parameters. J. Comput. Aided Des. Comput. Graph. 2010, 22, 838–844. [Google Scholar] [CrossRef]
  15. Chen, J. Quasi-Bézier curves with shape parameters. J. Appl. Math. 2013, 2013, 171392. [Google Scholar] [CrossRef]
  16. Chen, J.; Wang, G.J. A new type of the generalized Bézier curves. Appl. Math. J. Chin. Univ. 2011, 26, 47–56. [Google Scholar] [CrossRef] [Green Version]
  17. Xiang, T.N.; Liu, Z.; Wang, W.F. A novel extension of Bézier curves and surfaces of the same degree. J. Inform. Comput. Sci. 2010, 7, 2080–2089. [Google Scholar]
  18. Qin, X.Q.; Hu, G.; Zhang, N.J.; Shen, X.; Yang, Y. A novel extension to the polynomial basis functions describing Bézier curves and surfaces of degree n with multiple shape parameters. Appl. Math. Comput. 2013, 223, 1–16. [Google Scholar] [CrossRef]
  19. Han, X.A.; Ma, Y.C.; Huang, X.L. A novel generalization of Bézier curve and surface. J. Comput. Appl. Math. 2008, 217, 180–193. [Google Scholar] [CrossRef]
  20. Cao, J.; Wang, G.Z. An extension. An extension of Bernstein-Bézier surface over the triangular domain. Prog. Nat. Sci. 2007, 17, 352–357. [Google Scholar]
  21. Hu, G.; Wu, J.L.; Qin, X.Q. A new approach in designing of local controlled developable H-Bézier surfaces. Adv. Eng. Softw. 2018, 121, 26–38. [Google Scholar] [CrossRef]
  22. Zhu, Y.P.; Han, X.L. A class of αβγ-Bernstein–Bézier basis functions over triangular. Appl. Math. Comput. 2013, 220, 446–454. [Google Scholar] [CrossRef]
  23. Hu, G.; Wu, J.L.; Qin, X.Q. A novel extension of the Bézier model and its applications to surface modeling. Adv. Eng. Softw. 2018, 125, 27–54. [Google Scholar] [CrossRef]
  24. Wang, G.J.; Wang, G.Z.; Zheng, J.M. Computer Aided Geometric Design; Springer-Higher Education Press: Beijing, China, 2001. [Google Scholar]
  25. Hu, G.; Bo, C.C.; Qin, X.Q. Continuity conditions for Q-Bézier curves of degree n. J. Inequal. Appl. 2017, 2017, 115. [Google Scholar] [CrossRef] [PubMed]
  26. Caponetto, R.; Fortuna, L.; Graziani, S.; Xibilia, M.G. Genetic algorithms and applications in system engineering: A survey. Trans. Inst. Meas. Control 1993, 15, 143–156. [Google Scholar] [CrossRef]
Figure 1. The shape-adjustable generalized Bernstein (SG-Bernstein) basis functions of degree 3.
Figure 1. The shape-adjustable generalized Bernstein (SG-Bernstein) basis functions of degree 3.
Symmetry 10 00545 g001
Figure 2. The shape-adjustable generalized Bézier (SG-Bézier) curves of degree 3.
Figure 2. The shape-adjustable generalized Bézier (SG-Bézier) curves of degree 3.
Symmetry 10 00545 g002
Figure 3. The effect of altering the shape parameters on a SG-Bézier curve of degree 3.
Figure 3. The effect of altering the shape parameters on a SG-Bézier curve of degree 3.
Symmetry 10 00545 g003aSymmetry 10 00545 g003b
Figure 4. C1 smooth continuity of SG-Bézier curves.
Figure 4. C1 smooth continuity of SG-Bézier curves.
Symmetry 10 00545 g004
Figure 5. G1 smooth continuity of SG-Bézier curves.
Figure 5. G1 smooth continuity of SG-Bézier curves.
Symmetry 10 00545 g005
Figure 6. Example of SG-Bézier curves with C2 smooth continuity.
Figure 6. Example of SG-Bézier curves with C2 smooth continuity.
Symmetry 10 00545 g006
Figure 7. Example of SG-Bézier curves with G2 smooth continuity.
Figure 7. Example of SG-Bézier curves with G2 smooth continuity.
Symmetry 10 00545 g007
Figure 8. The influence of scale factors on the shape of SG-Bézier curves.
Figure 8. The influence of scale factors on the shape of SG-Bézier curves.
Symmetry 10 00545 g008
Figure 9. Examples of the shape adjustment of C1 smooth continuity.
Figure 9. Examples of the shape adjustment of C1 smooth continuity.
Symmetry 10 00545 g009aSymmetry 10 00545 g009b
Figure 10. Examples of the shape adjustment of G1 smooth continuity.
Figure 10. Examples of the shape adjustment of G1 smooth continuity.
Symmetry 10 00545 g010
Figure 11. Examples of shape adjustment of C2 smooth continuity.
Figure 11. Examples of shape adjustment of C2 smooth continuity.
Symmetry 10 00545 g011aSymmetry 10 00545 g011b
Figure 12. Examples of shape adjustment of G2 smooth continuity.
Figure 12. Examples of shape adjustment of G2 smooth continuity.
Symmetry 10 00545 g012
Figure 13. Nine SG-Bézier curves used to define the script form of the Chinese character “long”.
Figure 13. Nine SG-Bézier curves used to define the script form of the Chinese character “long”.
Symmetry 10 00545 g013
Figure 14. Design of a shape curve on a goose.
Figure 14. Design of a shape curve on a goose.
Symmetry 10 00545 g014

Share and Cite

MDPI and ACS Style

Hu, G.; Bo, C.; Wu, J.; Wei, G.; Hou, F. Modeling of Free-Form Complex Curves Using SG-Bézier Curves with Constraints of Geometric Continuities. Symmetry 2018, 10, 545. https://doi.org/10.3390/sym10110545

AMA Style

Hu G, Bo C, Wu J, Wei G, Hou F. Modeling of Free-Form Complex Curves Using SG-Bézier Curves with Constraints of Geometric Continuities. Symmetry. 2018; 10(11):545. https://doi.org/10.3390/sym10110545

Chicago/Turabian Style

Hu, Gang, Cuicui Bo, Junli Wu, Guo Wei, and Fei Hou. 2018. "Modeling of Free-Form Complex Curves Using SG-Bézier Curves with Constraints of Geometric Continuities" Symmetry 10, no. 11: 545. https://doi.org/10.3390/sym10110545

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