#### Abstract

In this paper, we present a new class of sextic trigonometric Bernstein (ST-Bernstein, for short) basis functions with two shape parameters along with their geometric properties which are similar to the classical Bernstein basis functions. A sextic trigonometric Bézier (ST-Bézier, for short) curve with two shape parameters and their geometric characteristics is also constructed. The continuity constraints for the connection of two adjacent ST-Bézier curves segments are discussed. Shape control parameters can provide an opportunity to modify the shape of curve as designer desired. Some open and closed curves are also part of this study.

#### 1. Introduction

A Bézier curve is a parametric curve that is used to draw the shapes in the fields of computer graphics and computer-aided geometric design. The Bézier curve is usually followed by the defining polygon. The tangent vectors direction at the end is the same as the vector defined by the first and last segment of the Bézier curves. It is useful in many industrial and engineering fields with various applications. Since Bézier curve always mimics the shape of its control polygon, designers can easily attain the required shape for designing purposes.

The trigonometric Bézier curves got a lot of attention in the fields of computer graphics and computer-aided geometric design due to their construction of conic section. Bézier curve with two parameters and control point was introduced by Kun [1], but the behavior of curve was not symmetric. The generalized Bézier-like curve with all of its geometric characteristics and continuity conditions is described by Yan and Liang [2]. They also applied the generalized Bézier-like curve for the tensor product surfaces to gain access for triangular surfaces as well. The modeling of innovative surfaces based on stream curves was described by Liu et al. [3]. By extending the concept of Bézier curve, Li [4] defined alpha-Bézier-like curves of degree with shape control parameters. The properties and applications of alpha-Bézier-like curves are also given. Han et al. [57] introduced some cubic and quartic trigonometric Bézier curves. They created an ellipse by using a cubic trigonometric Bézier curve and some designing and geometric modeling also made by continuity conditions. The behavior of shape control parameters also examined on these Bézier curves. Xiujuan et al. [8] investigated special revolution surfaces and their dramatic improvement. Bashir et al. [9] derived a class of quasi-quantic trigonometric Bézier curves with two shape parameters and proved their geometric features. The properties of the basis functions and curves are established, and the effect of the shape control parameters is also discussed. Practical applications of Bézier curves in geometric modeling and engineering are limited due to their shortcomings, and much work has been done to resolve these shortcomings [1016].

BiBi et al. [17, 18] suggested a new method for solving the problem of constructing symmetric curves and surfaces by using GHT-Bézier curves with four different shape parameters. The shape of curves can easily be modified by using different values of shape parameters. They generated some free-form complex curves with parametric continuity conditions by using GHT-Bézier curves to demonstrate the efficiency of modeling. Yan and Liang [2] used the recursive technique to create the rectangular Bézier curve and surface based on a new class of polynomial basis functions with one shape parameter. Hu et al. [19] presented a novel scheme to generate free-form complex figures using shape-adjustable generalized (SG) Bézier curves with some geometric continuities conditions. They constructed the necessary and sufficient constraints for and continuity for connection of two adjacent SG-Bézier curves to overcome the difficulty that most of the composite curves in engineering cannot often be constructed by using only a single curve. Majeed and Qayyum [20] presented the cubic and rational cubic trigonometric B-spline curves using new trigonometric functions with shape parameter. The proposed curves inherit the basic properties of classical B-spline and have been proved. Misro et al. [21] developed the general technique to construct S- and C-shaped transition curves using cubic trigonometric Bézier Curve with two shape parameters which satisfy Hermite condition. Misro et al. [22] constructed a new quintic trigonometric Bézier curve that has the potential to estimate the maximum driving speed allowed for safe driving on roads. The shape parameters used in this trigonometric Bézier function provided more flexibility for users in designing highways. The trigonometric Bézier curve of fifth degree with two shape parameters has been presented by Misro et al. [23]. Shape parameters provided more control on the shape of the curve compared to the classical Bézier curve. Juhász and Róth [24] presented a scheme for interpolating the given set of data points with continuous trigonometric spline curves of order which are produced by blending elliptical arcs with global parameter . Zhu and Han [25] constructed four new trigonometric Bernstein-like basis functions with two exponential shape parameters, based on which a class of trigonometric Bézier-like curves, similar to the cubic Bézier curves, have also been developed. The trigonometric Bézier-like curves corner cutting algorithm was also constructed. Yan and Liang [26] presented a new kind of algebraic-trigonometric blended spline curve, called curves. The proposed curves not only inherit most properties of classical cubic B-spline curves in polynomial space but also enjoy some other advantageous properties for modeling.

In this article, the research begins with the development of new ST-Bernstein basis functions with two shape control parameters. This study also provides a guarantee to construct a new ST-Bézier curve with two shape parameters. The newly constructed curves share all geometric properties of classical Bézier curves except the shape modification property, which is superior to the classical Bézier curve. The and continuity constraints are constructed to connect the two adjacent ST-Bézier curves segments. Moreover, in contrast with classical Bézier curves, our proposed scheme gives more shape adjustability in curve designing. Several examples are presented to show that the proposed method has high applied values in geometric modeling in terms of some closed and open curves.

The remainder of the paper is organized as follows. In Section 2, the new ST-Bernstein basis functions with two parameters are presented, which possess all geometric properties. In Section 3, the graphical representation of ST-Bézier curve with all geometric properties is given. The parametric and geometric continuity conditions with shape control parameters are given in Section 5. Shape control on ST-Bézier curve via shape parameters is given in Section 4. In Section 6, some application to construction of some closed and open curves is given with multiple shape control parameters. Finally, concluding remarks of this work are given in Section 7.

#### 2. Sextic Trigonometric Bernstein Basis Functions

In this section, the ST-Bernstein basis function with two shape parameters and their geometric properties is discussed.

Definition 1. For , the ST-Bernstein basis function with two shape parameters is defined byThe graphical representation of ST-Bernstein basis functions is given in Figure 1. By changing the values of shape control parameters, the variation in graphs of ST-Bernstein basis function is obvious. In Figure 1(a), the ST-Bernstein basis functions are drawn as (thick red), (dotted, blue), (dot dashed, green), (dashed, pink), (thick, purple), (thick, black), and (thick, yellow). In Figure 1(b), the ST-Bernstein basis functions are drawn as (thick, red), (dotted, blue), (dot dashed, green), (dashed, pink), (thick, purple), (thick, black), and (thick, yellow). In Figure 1(c), the ST-Bernstein basis functions are drawn as (thick, red), (dotted, blue), (dot dashed, green), (dashed, pink), (thick, purple), (thick, black), and (thick, gray).

Theorem 1. The ST-Bernstein basis functions in equation (1) have the following geometric characteristics:(1)Nonnegativity: (2)Partition of unity: (3)Symmetry: (4)Monotonicity: for the given value of the shape parameter , is monotonically decreasing and is monotonically increasing(5)Terminal property:

Proof. (1)For and , since and , this shows that .(2)It is obvious by Definition 1.(3)For ,For ,For ,(4)For any such that if then , this means that is monotonically decreasing similarly when and , which shows that is monotonically increasing. Let and , where . From the figures of the functions and , we can see and when . Therefore, and are monotonically decreasing and increasing about , respectively. This can also be shown graphically in Figure 1.(5)When we put and in Definition 1, we get and the first derivatives of these basis functions at their end points are given as follows:Similarly, the second derivatives of these basis functions at their end points are given as follows (see Figure 2):

#### 3. Sextic Trigonometric Bézier Curves with Two Shape Parameters

In this section, the ST-Bézier curves with two shape parameters and their geometric properties are discussed.

Definition 2. For the given control points , the curveis called ST-Bézier curve, where are called ST-Bernstein basis functions and are the shape parameters.
Some graphical results of ST-Bézier curve are discussed as follows: when shape parameters vary equally, Figure 3 is generated, while, by keeping one parameter fixed to 1, Figure 4 is generated. In Figure 4(a), when and varies, then influence of shape parameters can be seen on the left side of the figure. Meanwhile when we consider and parameter varies, the influence of these parameters can be observed on the right side of Figure 4(b).

Theorem 2. The ST-Bézier curves in equation (7) have the following geometric properties:(1)End point properties:(2)Symmetry: the control points define the same ST-Bézier curve having symmetric influence in different parameterizations, such as(3)Geometric invariance: the shape of ST-Bézier curve is independent from the coordinate axis, which means that the curve defined in equation (7) satisfies the two following equations:(4)Shape control property: the shape of classical Bézier curve cannot be modified due to absence of shape control parameters, while the ST-Bézier curve possesses two shape parameters by which we can modify the curve easily.(5)Convex hull property: the ST-Bézier curve must be confined inside the convex polygon spanned by its control points.(6)Linearly independent: for any , consider a linear combination as follows:

Taking , , ,…, derivatives of the above equation with respect to on each side yields the following equations:

When , we have

By using the values of the , , ,…, -order derivatives of ST-Bernstein basis functions at , we get ; this fact shows that are linearly independent.

#### 4. Shape Control of the ST-Bézier Curve

As we know, the shape parameters help us to modify the shape of the curve within which lies inside the control polygon. So, by using these shape control parameters, the ST-Bézier curves can be modified wherever the shape does not change at all. The shape parameters cause local change in the curve; see Figure 5. In Figure 5(a), the effect on shape of the curve is observed when {1 (dot dashed, green), 0.5 (thick, red), 0 (thick, purple), −1 (thick, blue), −2 (thick, black), −3 (thick, orange), and −4 (dashed, yellow)}. In Figure 5(b), the influence of ST-Bézier curve can be seen on the left-hand side when is fixed and varies in the interval [−4,1] as (thick, pink),  = 0.5 (thick, red),  = 0 (thick, green), (thick, black), (thick, orange), and (dashed, yellow). Similarly, Figure 5(c) is determined with influence on the right-hand side of the figure when  = 1 is fixed and varies as  = 1(thick, pink),  = 0.5 (thick, red),  = 0 (thick, green), (thick, black), (thick, orange), and (dashed, yellow).

#### 5. Continuity Conditions for ST-Bézier Curve Segments

In this section, the continuity conditions are derived for smooth joining of two ST-Bézier curves segments.

Lemma 1 (see [15]). The necessary and sufficient conditions for smooth joining of two ST-Bézier curve segments with control points and shape parameters and with control points and shape parameters via parametric continuity are as follows:(1), for continuity(2), for continuity(3), for continuity

Lemma 2 (see [15]). The necessary and sufficient conditions for smooth joining of two ST-Bézier curve segments with control points and shape parameters and with control points and shape parameters via geometric continuity are as follows:(1), for continuity(2), for continuity(3) and the curvature , for continuity

Theorem 3. Suppose that any two adjacent segments of ST-Bézier curves and with control points and reach smooth continuities at joint point if they match the following necessary and sufficient conditions:(1) for continuity.(2)For continuity,(3)For continuity,

Proof. (1)Using , we get . continuity is achieved.(2)For continuity, we must have continuity first to get , and  =  can be used to get .(3)For continuity, we must have continuity and continuity conditions; additionally the condition is used to get

##### 5.1. Continuity of ST-Bézier Curve

For parametric continuity, we consider any two ST-Bézier curve segments having the same joint point. In this case, the last control point of initial curve and the first control point of second curve are the same. By changing the values of control parameters, we can see the variation in figures. The values of different shape control parameters are used to modify the shape of values; see Figure 6.

##### 5.2. Continuity of ST-Bézier Curve

For parametric continuity of degree 1, consider two adjacent ST-Bézier curve segments with shape control parameters. In this case, we should have common tangents of the two curve segments at joint point. The first two control points of second curve can be achieved as given in Theorem 3. Figures 7(a)7(c) can be obtained by varying the shape control parameters via continuity constraints.

##### 5.3. Continuity of ST-Bézier Curve

The continuity can be achieved by connecting two adjacent ST-Bézier curve segments if they fulfill the and continuity conditions. The second derivative of these segments at joint point must be the same as that of continuity. The control points of the first curve can be chosen according to the designer’s requirement, while the control points for the second curve can be obtained from Theorem 3. Different values of shape control parameters can be used to obtain different curves as given in Figure 8.

#### 6. Geometric Continuity of ST-Bézier Curve

To get more smoothness between any two adjacent ST-Bézier curves, geometric continuity conditions have been derived. In geometric continuity conditions, one extra parameter is involved, which is used for the modification of the curve.

Theorem 4. Suppose that two adjacent segments of ST-Bézier curve and with control points and , respectively, can be connected via smooth continuities at joint point if they match the following necessary and sufficient conditions:(1), for continuity.(2), for continuity.(3),for G2 continuity.

Proof. 1.For continuity, yields .(2)For continuity, the expressions and , yield .(3)For continuity, as we know that , and the reverse normal vector of and vice normal vector of in have the same direction, the four vectors are coplanar. So, we consider , where are arbitrarily constants. Since the curvatures at the final point of the first curve and at the initial point of the second curve are the same,where , to meet the continuity conditions.

##### 6.1. Continuity of ST-Bézier Curve

and both have the same significance. For continuity, the tangents of the first curve and the second curve at joint point are the same. The parameter is any positive scale factor which is used for modification of curves. In Figure 9, by having different values of shape control parameters, the variation in figures can be seen.

##### 6.2. Continuity of ST-Bézier Curve

The geometric continuity of degree 2 between any two adjacent ST-Bézier curves is given here. Different figures display the behavior of various shape parameters and scale factors. In Figures 9(a)9(c), the shape parameters for both curves vary, while the scale factors remain fixed. In Figures 10(a)10(d), the shape parameters for both curves remain the same, while by changing the scale factors of the second curve the variation in the figures is obvious.

#### 7. Construction of Some Closed and Open Curves

Modeling and shape designing play a very important role in CAGD/CAD. ST-Bézier curves are also very useful for modeling and construction. So, by using ST-Bézier curves with various shape control parameters, we can construct some closed curves as shown in Figure 11. In Figure 11(a), closed curves are generated by using ST-Bézier curve when (dot dashed, green), 0.5 (thick, red), 0 (thick, purple), −1 (thick, blue), −2 (thick, black), −3 (thick, orange), and −4 (dashed, yellow). Similarly, in Figures 11(b) and 11(c), some closed curves are obtained by continuity conditions when (dot dashed, green), , (thick, red), , (thick, purple), (thick, blue), , (thick, black), , (thick, orange), and (dashed, yellow). By having different values of shape parameters, the influence can be seen as in Figures 11(a)11(c). By using ST-Bézier curves with various shape control parameters, we can construct some open curves as shown in Figure 12. In Figure 12(a), the open curve is generated by using ST-Bézier curve when (dot dashed, green), 0.5 (thick, red), 0 (thick, purple), −1 (thick, blue), −2 (thick, black), −3 (thick, orange), and −4 (dashed, yellow). Similarly, in Figures 12(b) and 12(c), some open curves are obtained by continuity conditions when (dot dashed, green), , (thick, red), , (thick, purple), 1 (thick, blue), , (thick, black), , (thick, orange), and (dashed, yellow). By having different values of shape parameters, the influence can be seen as in Figures 12(a)12(c).

#### 8. Conclusions

In this research, a newly constructed ST-Bernstein basis and Bézier curve with two shape parameters has been proposed. It can be concluded that its geometric properties are similar to those of the classical Bézier curve. The shape of the curve can be regulated by changing the values of shape parameters. The suggested curve can be used to create open and closed curves with different values of shape parameter. The parametric and geometric continuities for two adjacent ST-Bézier curves are also presented, which demonstrate the efficiency of adjoining the ST-Bézier curves.

#### Data Availability

The experimental data used to support the findings of this study are included within the paper.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest regarding this study.

#### Authors’ Contributions

All authors equally contributed to this work and read and approved the final manuscript.

#### Acknowledgments

The authors thank Dr. Muhammad Kashif Iqbal for his assistance in proofreading of the manuscript.