Next Article in Journal
Rigorous Analysis of the Quasi-Steady-State Assumption in Enzyme Kinetics
Previous Article in Journal
Logics of Statements in Context-Category Independent Basics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Construction of Cubic Trigonometric Curves with an Application of Curve Modelling

1
Department of Mathematics, Division of Science and Technology, University of Education, Lahore 54770, Pakistan
2
Department of Mathematics, University of Sargodha, Sargodha 40100, Pakistan
3
Department of Mechanical Engineering, Shizuoka University, Hamamatsu 432-8561, Shizuoka, Japan
*
Authors to whom correspondence should be addressed.
Mathematics 2022, 10(7), 1087; https://doi.org/10.3390/math10071087
Submission received: 28 February 2022 / Revised: 24 March 2022 / Accepted: 25 March 2022 / Published: 28 March 2022
(This article belongs to the Section Mathematics and Computer Science)

Abstract

:
This paper introduces new trigonometric basis functions (TBF) in polynomial and rational form with two shape parameters (SPs). Some classical characteristics, such as the partition of unity, positivity, symmetry, CHP, local control and invariance under affine transformation properties are proven mathematically and graphically. In addition, different continuity conditions at uniform knots (UK) are proven. Some open and closed curves from TBS and trigonometric rational B-spline (TRBS) are generated to test the applicability of the suggested technique, and the influence of the shape parameter is also noted. Furthermore, various objects, such as designing an alphabet, star, butterfly, leaf and 3D cube.

1. Introduction

In CAGD, B-spline is an important ingredient in geometric modelling, and the role of TBS is seen to be crucial for the designing and manipulation of geometrical curves and surfaces. Many schemes have been developed for the curve designing. These include ordinary Bézier [1,2], Ball Bézier-like [3], H-Bézier [4], Q-Bézier [5], classical B-spline [1,2] and non-uniform rational basis spline (NURBS) [1,2] etc. The comparison of Harmonic rational curves with p-Bézier curves was proposed in [6]. C 2 Algebraic-Trigonometric Pythagorean Hodograph (ATPH) splines were created in [7] by solving a non-linear system of equations in complex variables.
The problem of G 1 Hermite interpolation by PH cubic segments was proposed in [8]. In [9], Zhu and Han constructed a new trigonometric Bernstein basis, such as functions with two exponential SPs, and they proved that the cubic trigonometric Bézier-like curves were more efficient than the cubic Bézier curves. Various trigonometric Bézier-like functions in [10,11] have been implemented in recent years. The relationship between the two shape parameters and their geometric effect on the curve is discussed in [12]. These shape parameters are self-contained and thus demonstrated that their geometric effect on the curve is linear.
In [13], a new basis called the C-Bézier basis was presented. This shows that such a basis and curves in polynomial spaces are similar to the Bernstein basis and Bézier curves. Chen et al. [14] built a new generalisation of the Bernstein operator based on a non-negative real parameter. The shape-preserving properties of generalised Bernstein operators are also investigated. They demonstrated that monotonic or convex functions result in monotonic or convex generalised Bernstein polynomials. The q-Bernstein polynomials, which generalise the conventional Bernstein polynomials, were described by [15], who showed that the difference between two successive q-Bernstein polynomials of a function f may be represented in terms of second-order split differences of f.
With respect to the Jacobi L 2 -norm proposed in [16], a weighted least-squares approximation of Bézier coefficients with factored Hahn weights provides the best constrained polynomial degree reduction. Whereas, by constructing bivariate Bernstein–Kantorovich type operators on an extended domain with reparametrized knots, a link between approximation theory and summability methods was established in [17].
In [18], Schoenberg introduced the trigonometric splines with a recurrence relation. The geometric effect of the shape parameter on curves and the investigation on the Constrained modification of the curves is discussed in [19]. The author defined that spline curves are types of curves that are equitably unite, i.e., significantly, a set of two or more polynomials. Splines are widely used in many fields of engineering, such as data fitting. In [20] the proposed method can be used to fit any type of curve ranging from smooth to discontinuous.
Furthermore, the method does not necessitate a high computational cost, thus, allowing it to be used in automatic reverse engineering applications. Han [21] constructed quadratic TBS curves and compared these to quadratic B-spline curves; they were smoother and closer to a control polygon. The authors in [22,23] introduced the term B-spline (Basis spline). In the mid-1980s, curves swarmed the field of Computer Aided Geometric Design (CAGD). Choubey and Ojha [24] developed TBS with one SP. In [25], the author contributed to the literature by proposing cubic TBS curves on uniform and non-UK with SPs. Yan [26] showed how to create a class of NURBS basis functions having a single SP. For a single knot, C 2 continuity can be achieved, and C 3 and C 5 continuity can be attained using the proposed basis for a unique SP.
A new class of algebraic trigonometric blended spline curves created over space were proposed in [27]. The SPs x and y in the proposed curve are used to control the curve. For the designing of rational surfaces, a scheme based on λ μ B B-spline was proposed in [28]. This method works well for modifying the complicated structures of rotational surfaces. A technique using a cubic TRBS with two SP as put into practise to construct flexible curves [29]. The sampling method for the reconstruction of curves and surfaces was proposed by [30]. They also discussed how to represent surfaces generated by two or more curves. With an application to curve design, [31] derived certain identities for trigonometric B-splines. In [32], the construction of craniofacial fractures using rational ball curve was introduced, which involves four free parameters. The construction of numerous bone fractures using NURBS curves and CT scan data in the DICOM format is described in [33].
This paper is an attempt to introduce new TBF and TBS curves with SP. The basic geometric properties, such as sum to one, positivity, symmetry, convex hull property and invariance under affine transformation are satisfied by the proposed basis functions. Different continuity conditions at UK were derived for TBF and TRBS functions. The main advantage of using trigonometric B-spline functions is that these functions have built-in continuity. There is no need to derive continuity conditions from segment to segment.
In order to change the curve from any particular point, we need to adjust that point according to our need. The applicability and efficiency of the suggested curves were tested using a variety of open and closed curves. Finally, the suggested curves are applied to 2D and 3D modelling. The main objectives of this paper are:
  • To work on cubic TBF using trigonometric Bézier basis functions with some appropriate choice of SP λ .
  • To demonstrate how the form parameter affects TBS basic functions and TBS curves.
  • To derive different properties of CTBS along with their continuities in both polynomial and rational form.
  • To construct different objects using CTBS and their applications in practical life.
The rest of the research is presented as follows: In Section 2, cubic TBFs are designed, and their geometric characteristics are proven mathematically and graphically as well. Section 3 discusses the construction and validity of cubic TBS curves. Section 4 presents the construction of cubic TRBS basis functions and also proves their basic properties. In Section 5, we elaborate on the design of the TRBS curve and construct open and closed curves by using appropriate values of SP λ and weights. The application of CTBS in the geometric modelling of different objects is explained in Section 6. The concluding remarks of this study are given in Section 7.

2. Cubic Trigonometric B-Spline Basis Functions

Definition 1.
Consider N = ( n 0 , n 1 , . . , n j + 4 ) are the knot vectors in such a way that n 0 < n 1 < n 2 < < n j + 4 , where j denotes the degree of the curve. The new TBF with the UK are defined as follows.
B i ( n ) = s i ( b 3 ( u i ) ) , n [ n i , n i + 1 ) , k = 0 3 r i + 1 , k ( b k ( u i + 1 ) ) , n [ n i + 1 , n i + 2 ) , k = 0 3 q i + 2 , k ( b k ( u i + 2 ) ) , n [ n i + 2 , n i + 3 ) , p i + 3 ( b 0 ( u i + 3 ) ) , n [ n i + 3 , n i + 4 ) , 0 , O t h e r w i s e .
Here, we have u i ( n ) = π 2 ( n n i n i + 1 n i ) for i Z + ,
s i = α i μ i γ i , r i , 0 = s i , r i , 1 = α i Δ n i 1 γ i , r i , 2 = α i μ i γ i , r i , 3 = α i γ i μ i Δ n i + 1 + α i γ i ν i Δ n i γ i 2 β i , q i , 0 = α i γ i μ i Δ n i + α i γ i ν i Δ n i 1 β i γ i 2 , q i , 1 = α i ν i γ i , q i , 2 = α i Δ n i + 1 γ i , q i , 3 = p j , p i = α i Δ n i β i γ i .
where,
Δ n i = n i + 1 n i , β i = Δ n i 1 + Δ n i , α i = 1 + 2 λ i , μ i = Δ n i 1 + α i Δ n i , ν i = α i Δ n i 1 + Δ n i , γ i = α i Δ n i 2 + α i 2 Δ n i 1 + α i Δ n i .
with the shape parameter (SP) λ [ 0 , 1 ) with the proposed TBFs as:
b 0 ( u ) = ( 1 sin ( π 2 ) u ) ( 1 sin ( π 2 ) u + λ sin ( π 2 ) u ) , b 1 ( u ) = ( sin ( π 2 ) u ) ( 1 sin ( π 2 ) u ) ( 2 λ ) , b 2 ( u ) = ( cos ( π 2 ) u ) ( 1 cos ( π 2 ) u ) ( 2 λ ) , b 3 ( u ) = ( 1 cos ( π 2 ) u ) ( 1 cos ( π 2 ) u + λ cos ( π 2 ) u ) .
Figure 1 and Figure 2 represent the graphical behaviour of proposed basis functions. In Figure 3, the effect of SP can be observed, and thus this effect is demonstrated using various colours as shown in Table 1.

Properties of the Basis Functions

Following are the properties that the above cubic TBF satisfies.
Theorem 1.
The given cubic trigonometric basis functions (TBF) satisfy the property of partition of unity—that is, for n as a knot vector and i = 0 , 1 , 2 , . , j + 4 for j being the degree of the curve, we have
i = 0 3 B i ( n ) = 1 .
Proof. 
For i ( i 3 ) , ( i 2 ) , ( i 1 ) , ( i ) , we have B i ( n ) = 0 and B i ( n ) for i = ( i 3 ) , ( i 2 ) , ( i 1 ) , ( i ) is given in the form of B i 3 ( n ) , B i 2 ( n ) , B i 1 ( n ) , B i ( n ) is defined as
B i 3 ( n ) = p i ( b 0 ( u i ) ) ,
B i 2 ( n ) = k = 0 3 q i , k b k ( u i ) ,
B i 1 ( n ) = k = 0 3 r i , k b k ( u i ) ,
B i ( n ) = s i b 3 ( u i ) .
The given expression will hold for n [ n i , n i + 1 ) . Here, u i ( n ) = π 2 ( n n i n i + 1 n i ) for i Z + and λ [ 0 , 1 ) . Thus, by substituting the values, we find:
i = i 3 i B i ( n ) = ( 1 4 λ + 6 ) ( 1 sin ( π 2 ) u i ) ( 1 sin ( π 2 ) u i + λ sin ( π 2 ) u i ) + ( 2 ( 1 + λ ) 2 λ + 3 ) ( 1 sin ( π 2 ) u i ) ( 1 sin ( π 2 ) u i + λ sin ( π 2 ) u i ) + ( 2 ( 1 + λ ) 2 λ + 3 ) ( sin ( π 2 ) u i ) ( 1 sin ( π 2 ) u i ) ( 2 λ ) + ( 1 2 λ + 3 ) ( cos ( π 2 ) u i ) ( 1 cos ( π 2 ) u i ) ( 2 λ ) + ( 1 4 λ + 6 ) ( 1 cos ( π 2 ) u i ) ( 1 cos ( π 2 ) u i + λ cos ( π 2 ) u i ) + ( 1 4 λ + 6 ) ( 1 sin ( π 2 ) u i ) ( 1 sin ( π 2 ) u i + λ sin ( π 2 ) u i ) + ( 1 2 λ + 3 ) ( sin ( π 2 ) u i ) ( 1 sin ( π 2 ) u i ) ( 2 λ ) + ( 2 ( 1 + λ ) 2 λ + 3 ) ( cos ( π 2 ) u i ) ( 1 cos ( π 2 ) u i ) ( 2 λ ) + ( 2 ( 1 + λ ) 2 λ + 3 ) ( 1 cos ( π 2 ) u i ) ( 1 cos ( π 2 ) u i + λ cos ( π 2 ) u i ) + ( 1 4 λ + 6 ) ( 1 cos ( π 2 ) u i ) ( 1 cos ( π 2 ) u i + λ cos ( π 2 ) u i ) .
i = i 3 i B i ( n ) = ( 1 4 λ + 6 ) { 1 + ( λ 2 ) sin ( π 2 ) u i + ( 1 λ ) sin 2 ( π 2 ) u i } + ( 2 ( 1 + λ ) 2 λ + 3 ) { 1 + ( λ 2 ) sin ( π 2 ) u i + ( 1 λ ) sin 2 ( π 2 ) u i } + ( 2 ( 1 + λ ) 2 λ + 3 ) { ( 2 λ ) sin ( π 2 ) u i + ( λ 2 ) sin 2 ( π 2 ) u i } + ( 1 2 λ + 3 ) { ( 2 λ ) cos ( π 2 ) u i + ( λ 2 ) cos 2 ( π 2 ) u i } + ( 1 4 λ + 6 ) { 1 + ( λ 2 ) cos ( π 2 ) u i + ( 1 λ ) cos 2 ( π 2 ) u i } + ( 1 4 λ + 6 ) { 1 + ( λ 2 ) sin ( π 2 ) u i + ( 1 λ ) sin 2 ( π 2 ) u i } + ( 1 2 λ + 3 ) { ( 2 λ ) sin ( π 2 ) u i + ( λ 2 ) sin 2 ( π 2 ) u i } + ( 2 ( 1 + λ ) 2 λ + 3 ) { ( 2 λ ) cos ( π 2 ) u i + ( λ 2 ) cos 2 ( π 2 ) u i } + ( 2 ( 1 + λ ) 2 λ + 3 ) { 1 + ( λ 2 ) cos ( π 2 ) u i + ( 1 λ ) cos 2 ( π 2 ) u i } + ( 1 4 λ + 6 ) { 1 + ( λ 2 ) cos ( π 2 ) u i + ( 1 λ ) cos 2 ( π 2 ) u i } . i = i 3 i B i ( n ) = 2 sin 2 ( π 2 ) u i cos 2 ( π 2 ) u i .
Thus, i = i 3 i B i ( n ) = 1 . □
Theorem 2.
The given basis functions and the proposed TBFs are positive or zero having the SP λ , i.e., B i ( n ) 0 .
Proof. 
As the first and last interval consists of one term only, the property is true for both of the intervals. Whereas, for the second interval, let us take z = tan ( 1 2 ) u and u [ 0 , 1 ] :
k = 0 3 r i , k ( b k ( u ) ) = r i , 0 ( b 0 ( u ) ) + r i , 1 ( b 1 ( u ) ) + r i , 2 ( b 2 ( u ) ) + r i , 3 ( b 3 ( u ) ) . = r i , 0 { 1 + ( λ 2 ) sin ( π 2 ) u + ( 1 λ ) sin 2 ( π 2 ) u } + r i , 1 { ( 2 λ ) sin ( π 2 ) u + ( λ 2 ) sin 2 ( π 2 ) u } + r i , 2 { ( 2 λ ) cos ( π 2 ) u + ( λ 2 ) cos 2 ( π 2 ) u } + r i , 3 { 1 + ( λ 2 ) cos ( π 2 ) u + ( 1 λ ) cos 2 ( π 2 ) u } .
Now, with
sin ( π 2 ) u = 2 z 1 + z 2 , a n d cos ( π 2 ) u = 1 z 2 1 + z 2 .
We obtain
k = 0 3 r i , k ( b k ( u ) ) = { 1 ( 1 + z 2 ) 2 } ( k = 0 4 z k y k ) .
Here,
z 0 = c i , 0 , z 1 = ( 2 λ 4 ) ( r i , 0 r i , 1 ) , z 2 = ( 6 4 λ ) r i , 0 + ( 4 λ 8 ) r i , 1 ( 2 λ 4 ) r i , 2 + ( 2 λ ) r i , 3 , z 3 = 2 ( λ 2 ) ( r i , 0 r i , 1 ) , z 4 = c i , 0 + 2 ( λ 2 ) ( r i , 2 r i , 3 ) .
In the same manner, we can prove this property of n [ n i + 2 , n i + 3 ) . □
Theorem 3.
For B i ( n , λ ) = B 3 i ( 1 n , λ ) for i = 0 , 1 , 2 , 3 .
Proof. 
For λ [ 0 , 1 ) , we have
s i n ( π 2 ) u 0 , 1 s i n ( π 2 ) u 0 , 1 s i n ( π 2 ) u + λ s i n ( π 2 ) u 0 .
and
c o s ( π 2 ) u 0 , 1 c o s ( π 2 ) u 0 , 1 c o s ( π 2 ) u + λ c o s ( π 2 ) u 0 .
Therefore,
{ 1 + ( λ 2 ) sin ( π 2 ) u + ( 1 λ ) sin 2 ( π 2 ) u } = ( 1 sin ( π 2 ) u ) ( 1 sin ( π 2 ) u + λ sin ( π 2 ) u ) 0 .
Similarly, we have
{ 1 + ( λ 2 ) cos ( π 2 ) u + ( 1 λ ) cos 2 ( π 2 ) u } = ( 1 cos ( π 2 ) u ) ( 1 cos ( π 2 ) u + λ cos ( π 2 ) u ) 0 . { ( 2 λ ) sin ( π 2 ) u + ( λ 2 ) sin 2 ( π 2 ) u } = ( sin ( π 2 ) u ) ( 1 sin ( π 2 ) u ) ( 2 λ ) 0 . { ( 2 λ ) cos ( π 2 ) u + ( λ 2 ) cos 2 ( π 2 ) u } = ( cos ( π 2 ) u ) ( 1 cos ( π 2 ) u ) ( 2 λ ) 0 .
The symmetry of the given cubic TBS basis functions is shown in Figure 4.
Theorem 4.
For uniform knots (UK), the proposed basis functions are C 2 continuous. Now, let n i + 1 + and n i + 1 are the knot vectors in n [ n i + 1 , n i + 2 ) , respectively.
Proof. 
For the first interval, the left and right hand continuity is given as
Derivatives at knot n i + 1
B i ( n i + 1 ) = s i . B i ( n i + 1 ) = ( π 2 Δ n i ) ( 2 λ ) s j . B i ( n i + 1 ) = 1 2 ( π 2 Δ n i ) 2 ( 1 λ ) s i . B i ( n i + 1 ) = ( π 2 Δ n i ) 3 ( λ 2 ) s i . B i i v ( n i + 1 ) = ( π 2 Δ n i ) 4 { 8 ( λ 1 ) s i } . B i v ( n i + 1 ) = ( π 2 Δ n i ) 5 { ( 2 λ ) s i } .
Derivatives at knot n i + 1 +
B i ( n i + 1 + ) = r i + 1 , 0 = s i + 1 . B i ( n i + 1 + ) = ( π 2 Δ n i + 1 ) { ( λ 2 ) ( r i + 1 , 0 r i + 1 , 1 ) } . B i ( n i + 1 + ) = ( π 2 Δ n i + 1 ) 2 { 2 ( λ 1 ) r i + 1 , 0 + ( 2 λ ) ( r i + 1 , 2 2 r i + 1 , 1 ) + λ r i + 1 , 3 } . B i ( n i + 1 + ) = ( π 2 Δ n i + 1 ) 3 { ( 2 λ ) ( r i + 1 , 0 r i + 1 , 1 ) } . B i i v ( n i + 1 + ) = ( π 2 Δ n i + 1 ) 4 { 8 ( λ 1 ) r i + 1 , 0 + ( 2 λ ) ( 8 r i + 1 , 1 7 r i + 1 , 2 ) + ( 6 7 λ ) r i + 1 , 3 } . B i v ( n i + 1 + ) = ( π 2 Δ n i + 1 5 ) { ( λ 2 ) ( r i + 1 , 0 r i + 1 , 1 ) } .
Derivatives at knot n i + 2
B i ( n i + 2 ) = r i + 1 , 3 . B i ( n i + 2 ) = ( π 2 Δ n i + 1 ) { ( 2 λ ) ( r i + 1 , 3 r i + 1 , 2 ) } . B i ( n i + 2 ) = ( π 2 Δ n i + 1 ) 2 { λ ( r i + 1 , 0 ) + ( 2 λ ) ( r i + 1 , 1 2 r i + 1 , 2 ) + 2 ( 1 λ ) ( r i + 1 , 3 ) } . B i ( n i + 2 ) = ( π 2 Δ n i + 1 ) 3 { ( λ 2 ) ( r i + 1 , 3 r i + 1 , 2 ) } . B i i v ( n i + 2 ) = ( π 2 Δ n i + 2 ) 4 { ( 6 7 λ ) ( r i + 1 , 0 ) + ( 2 λ ) ( 8 r i + 1 , 2 7 r i + 1 , 1 ) + 8 ( λ 1 ) ( r i + 1 , 3 ) } . B i v ( n i + 2 ) = ( π 2 Δ n i + 1 ) 5 { ( 2 λ ) ( r i + 1 , 2 r i + 1 , 3 ) } .
Derivatives at knot n i + 2 +
B i ( n i + 2 + ) = q i + 2 , 0 . B i ( n i + 2 + ) = ( π 2 Δ n i + 2 ) { ( λ 2 ) ( q i + 2 , 0 q i + 2 , 1 ) } . B i ( n i + 2 + ) = ( π 2 Δ n i + 2 ) 2 { 2 ( λ 1 ) q i + 2 , 0 + ( 2 λ ) ( q i + 2 , 2 2 q i + 2 , 1 ) + λ ( q i + 2 , 3 ) } . B i ( n i + 2 + ) = ( π 2 Δ n i + 2 ) 3 { ( 2 λ ) ( q i + 2 , 0 q i + 2 , 1 ) } . B i i v ( n i + 2 + ) = ( π 2 Δ n i + 2 ) 4 { 8 ( λ 1 ) q i + 2 , 0 + ( 2 λ ) ( 8 q i + 2 , 1 7 q i + 2 , 2 ) + ( 6 7 λ ) q i + 2 , 3 } . B i v ( n i + 2 + ) = ( π 2 Δ n i + 2 5 ) { ( λ 2 ) ( q i + 2 , 0 q i + 2 , 1 ) } .
Derivatives at knot n i + 3
B i ( n i + 3 ) = q i + 2 , 3 . B i ( n i + 3 ) = ( π 2 Δ n i + 2 ) { ( 2 λ ) ( q i + 2 , 3 q i + 2 , 2 ) } . B i ( n i + 3 ) = ( π 2 Δ n i + 2 ) 2 { λ ( q i + 2 , 0 ) + ( 2 λ ) ( q i + 2 , 1 2 q i + 2 , 2 ) + 2 ( 1 λ ) ( q i + 2 , 3 ) } . B i ( n i + 3 ) = ( π 2 Δ n i + 2 ) 3 { ( λ 2 ) ( q i + 2 , 3 q i + 2 , 2 ) } . B i i v ( n i + 3 ) = ( π 2 Δ n i + 2 ) 4 { ( 6 7 λ ) ( q i + 2 , 0 ) + ( 2 λ ) ( 8 q i + 2 , 2 7 q i + 2 , 1 ) + 8 ( λ 1 ) ( q i + 2 , 3 ) } . B i v ( n i + 3 ) = ( π 2 Δ n i + 2 ) 5 { ( 2 λ ) ( q i + 2 , 2 q i + 2 , 3 ) } .
Derivatives at knot n i + 3 +
B i ( n i + 3 + ) = p i + 3 . B i ( n i + 3 + ) = ( π 2 Δ n i + 3 ) { ( λ 2 ) ( p i + 3 ) } . B i ( n i + 3 + ) = ( π 2 Δ n i + 3 ) 2 { 2 ( 1 λ ) ( p i + 3 ) } . B i ( n i + 3 + ) = ( π 2 Δ n i + 3 ) 3 { ( 2 λ ) ( p i + 3 ) } . B i i v ( n i + 3 + ) = ( π 2 Δ n i + 3 ) 4 { 8 ( λ 1 ) ( p i + 3 ) } . B i v ( n i + 3 + ) = ( π 2 Δ n i + 3 ) 5 { ( 2 λ ) ( p i + 3 ) } .
The graphical representation of second derivative of proposed basis function is given in Figure 5 for clarification of C 2 continuity.

3. Cubic Trigonometric B-Spline Curve

Definition 2.
The cubic trigonometric B-spline (TBS) curve of degree j defined on the control points, such as C i ( i = 0 , 1 , 2 , . , n ) in R 2 or R 3 with UK vectors N = ( n 0 , n 1 , , n j + 4 ) , i.e.,
H ( n ) = i = 0 n B i ( n ) C i .
As u i ( n ) = π 2 ( n n i n i + 1 n i ) for i = 0 , 1 , 2 , 3 , the cubic trigonometric curve for n [ n i , n i + 1 ) is given as
H ( n ) = B 0 ( n ) C 0 + B 1 ( n ) C 1 + B 2 ( n ) C 2 + B 3 ( n ) C 3 .
In addition,
H ( n ) = B i 3 ( n ) C i 3 + B i 2 ( n ) C i 2 + B i 1 ( n ) C i 1 + B i ( n ) C i .
Furthermore, Figure 6 shows the cubic TBS curve with a suitable choice of shape parameter (SP) and here,
B i 3 ( n ) = B 0 ( n ) = p 0 ( b 0 ( u 0 ) ) , B i 2 ( n ) = B 1 ( n ) = k = 0 3 q 1 , k ( b k ( u 1 ) ) , B i 1 ( n ) = B 2 ( n ) = k = 0 3 r 1 , k ( b k ( u 2 ) ) , B i ( n ) = B 3 ( n ) = s 3 ( b 3 ( u 3 ) ) .

3.1. Properties of Cubic Trigonometric B-Spline Curve

The B-spline curve
H ( n ) = i = 0 n B i ( n ) C i .
of degree j defined on the knot vectors N = ( n 0 , n 1 , , n j + 4 ) satisfies the following properties.
  • Local Control: The cubic TBS curve has the property of local control i.e., in B-spline curve only that segment will be changed where that particular control point is located. Figure 7 shows that the cubic TBS curve does not pass though the extreme points.
  • Convex Hull Property: This property shows that all the points of the cubic TBS curve always lie inside the convex hull of its control polygon, i.e., for n [ n i , n i + 4 ) CHP is shown below in Figure 8.
  • Invariance under affine transformation: Let T be an affine transformation, such as rotation, scaling, transformation and reflection. This implies
    T ( i = 0 m P i B i ( n ) ) = i = 0 m T ( P i ) B i ( n ) .
  • Continuity of Trigonometric B-spline Curve: The TBS curve H n has C 3 continuity for UK. Let k be the multiplicity of the knot vectors n i , and then the curve has C 3 k continuity. Whereas the continuity at C 1 implies that the curve is discontinuous.
    In the knot interval n [ n i , n i + 1 ) , the derivatives are evaluated as follows.
    Derivatives at knot n i +
    H ( n i + ) = p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 , H ( n i + ) = ( π 2 Δ n i ) [ ( λ 2 ) { ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) ( q i , 1 C i 2 + r i , 1 C i 1 ) } ] , H ( n i + ) = ( π 2 Δ n i ) 2 [ 2 ( λ 1 ) ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) + ( 2 λ ) { ( q i , 2 2 q i , 1 ) C i 2 + ( r i , 2 2 r i , 1 ) C i 1 } + ( λ ) ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) ] , H ( n i + ) = ( π 2 Δ n i ) 3 [ ( 2 λ ) { ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) ( q i , 1 C i 2 + r i , 1 C i 1 ) } ] , H i v ( n i + ) = ( π 2 Δ n i ) 4 [ 8 ( λ 1 ) ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) + ( 2 λ ) { ( 8 q i , 1 7 q i , 2 ) C i 2 + ( 8 r i , 1 7 r i , 2 ) C i 1 } + ( 6 7 λ ) ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) ] , H v ( n i + ) = ( π 2 Δ n i ) 5 [ ( λ 2 ) { ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) ( q i , 1 C i 2 + r i , 1 C i 1 ) } ] .
    Similarly,
    Derivatives at knot n i + 1
    H ( n i + 1 ) = ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) , H ( n i + 1 ) = ( π 2 Δ n i ) [ ( 2 λ ) { ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) ( q i , 2 C i 2 + r i , 2 C i 1 ) } ] , H ( n i + 1 ) = ( π 2 Δ n i ) 2 [ ( λ ) ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) + ( 2 λ ) { ( q i , 1 2 q i , 2 ) C i 2 + ( r i , 1 2 r i , 2 ) C i 1 } + 2 ( 1 λ ) ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) ] , H ( n i + 1 ) = ( π 2 Δ n i ) 3 [ ( 2 λ ) { ( q i , 2 C i 2 + r i , 2 C i 1 ) ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) } ] , H i v ( n i + 1 ) = ( π 2 Δ n i ) 4 [ ( 6 7 λ ) ( p i C i 3 + q i , 0 C i 2 + r i , 0 C i 1 ) + ( 2 λ ) { ( 8 q i , 2 7 q i , 1 ) C i 2 + ( 8 r i , 2 7 r i , 1 ) C i 1 } + 8 ( λ 1 ) ( q i , 3 C i 2 + r i , 3 C i 1 + s i C i ) ] , H v ( n i + 1 ) = ( π 2 Δ n i ) 5 [ ( 2 λ ) { ( 2 λ ) ( q i , 3 q i , 2 ) C i 2 + ( r i , 3 r i , 2 ) C i 1 + s i C i } ] .

3.2. Validity of Proposed Scheme

  • Open Trigonometric B-spline Curve: The given TBS basis functions are verified by constructing an open B-spline curve by using the SP λ and the knot vectors N = ( n 0 , n 1 , . . , n j + 4 ) . In Figure 9, by taking SP λ = 0.2 , an open curve was constructed, and thus it also lies in the convex hull of its defining control polygon.
    The effect of SP is shown in Figure 10 by using different colours. These coloured curves were designed by taking different values of SP, and black is used for λ = 0 , red for λ = 0.35 and blue for λ = 0.8 .
  • Closed Trigonometric B-spline Curve: In Figure 11, a closed curve was constructed by using the knot vectors N = ( n 0 , n 1 , . . , n j + 4 ) in the interval n [ n i , n i + 1 ) and specified by using the shape parameter (SP) λ .
    Therefore, the proposed basis function is applicable for both open and closed cubic TBS curves, and the effect of SP by taking various values of λ is shown in Figure 12 with blue used for λ = 0.8 , red for λ = 0.35 and black for λ = 0 .
    Therefore, it is proven that, by increasing the value of λ , we obtain more refined forms of curves, which are closer to the control polygon.

4. Cubic Trigonometric Rational B-Spline Basis Functions

Definition 3.
The cubic TRBS basis function with the degree d of the polynomial with the weights w i s > 0 is defined as follows.
F ( n ) = i = 0 n ( w i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .
Here, B i , d are the cubic TBS basis functions with the knot vectors N.
In addition,
F ( n ) = i = 0 n P i , d ( n ) ,
where
P i , d ( n ) = ( w i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .

Properties of Rational Trigonometric Cubic B-Spline Basis Functions

The following are some of the properties of cubic TRBS basis functions.
Theorem 5.
The sum of all the basis functions of cubic trigonometric rational B-spline (TRBS) is equal to 1, i.e.,
i = 0 n P i , d ( n ) = 1 .
Proof. 
Thus,
P i , d ( n ) = ( w i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .
This can also be written as
P i , 3 ( n ) = ( w i B i , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) ) .
Thus, we have
F ( n ) = i = 0 3 P i , 3 ( n ) . = P 0 , 3 ( n ) + P 1 , 3 ( n ) + P 2 , 3 ( n ) + P 3 , 3 ( n ) . F ( n ) = w 0 B 0 , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) w 1 B 1 , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) w 2 B 2 , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) w 3 B 3 , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) . F ( n ) = w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) w 0 B 0 , 3 ( n ) + w 1 B 1 , 3 ( n ) + w 2 B 2 , 3 ( n ) + w 3 B 3 , 3 ( n ) . F ( n ) = 1 . H e n c e P r o v e d .
Theorem 6.
For all w i = 1 = w j , then P i , d ( n ) = B i , d ( n ) .
Proof. 
The TRBS basis functions for degree d = 3 is defined as
P i , 3 ( n ) = ( w i B i , 3 ( n ) j = 0 3 ( w j B j , 3 ( n ) ) ) .
With w i = w j = 1 , we find
P i , 3 ( n ) = ( ( 1 ) B i , 3 ( n ) ( 1 ) B 0 , 3 ( n ) + ( 1 ) B 1 , 3 ( n ) + ( 1 ) B 2 , 3 ( n ) + ( 1 ) B 3 , 3 ( n ) ) . = ( B i , 3 ( n ) B 0 , 3 ( n ) + B 1 , 3 ( n ) + B 2 , 3 ( n ) + B 3 , 3 ( n ) ) .
As we know that the sum of all the basis functions is equal to 1, i.e., this is already proven in the property of the partition of unity. Thus, this implies
i = 0 3 B i ( n ) = 1 .
Therefore, we find
P i , d ( n ) = B i , d ( n ) .

5. Rational Trigonometric Cubic B-Spline Curve

Definition 4.
The Cubic TRBS curve with the free parameter λ and the weights w i s > 0 is defined as
T ( n ) = i = 0 n ( w i K i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .
where K i = K 0 , K 1 , , K m are the control points and B i , d ( n ) are the trigonometric basis with the degree d at the knot vectors N = ( n 0 , n 1 , , n j + 4 ) . The above expression can also be written as
F ( n ) = ( i = 0 n K i P i , d ( n ) ) ,
where
P i , d ( n ) = ( w i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .

5.1. Properties of Rational Trigonometric Cubic B-Spline Curve

  • Convex Hull Property (CHP): Rational B-spline curve has convex hull property, i.e., every point of curve lies inside the convex hull of its defining polygon. This implies T ( n ) C H ( K 0 , K 1 , , K m ) for n [ n i , n j + 4 ) , as shown in Figure 13;
  • Local Control:Figure 14 shows that, in B-splines, the curve is always controlled by changing the weights and the control points.
  • Invariance Under Affine Transformation: Let T be an affine transformation, and then
    T ( i = 0 n ( w i K i B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) ) = i = 0 n ( w i T ( K i ) B i , d ( n ) j = 0 n ( w j B j , d ( n ) ) ) .
  • Continuity of Cubic Rational B-spline Curve: The cubic TRBS curve has C 1 continuity at UK vector n. Consider m is the multiplicity of the knot vectors n, which is equal to the order of the cubic B-spline curve, and then the curve has continuity C 3 m , and C 1 continuity implies that the curve is discontinuous.
    For n [ n i , n i + 1 ) , the continuity of the knot vectors is given as
    P i 3 ( n i + ) = ( w 0 w 0 + 4 ( 1 + λ ) w 1 + w 2 ) ( K i 3 ) ,
    P i 2 ( n i + ) = ( 4 ( 1 + λ ) ( w 1 ) w 0 + 4 ( 1 + λ ) w 1 + w 2 ) ( K i 2 ) ,
    P i 2 ( n i + 1 ) = ( w 1 w 1 + 4 ( 1 + λ ) w 2 + w 3 ) ( K i 2 ) ,
    P i 1 ( n i + ) = ( w 2 w 0 + 4 ( 1 + λ ) w 1 + w 2 ) ( K i 1 ) ,
    P i 1 ( n i + 1 ) = ( 4 ( 1 + λ ) ( w 2 ) w 1 + 4 ( 1 + λ ) w 2 + w 3 ) ( K i 1 ) ,
    P i ( n i + 1 ) = ( w 3 w 1 + 4 ( 1 + λ ) w 2 + w 3 ) ( K i ) .
    Differentiating Equation (10) w.r.t ‘n’ and then substituting n = n i in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we obtain
    P i 3 ( n i + ) = ( π Δ n i ) [ ( λ 2 ) { 2 ( 1 + λ ) w 1 + w 2 } ( w 0 ) ( w 0 + 4 ( 1 + λ ) w 1 + w 2 ) 2 ] ( K i 3 ) .
    Differentiating Equation (11) w.r.t ‘n’ and then substituting n = n i in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we obtain
    P i 2 ( n i + ) = ( π 2 Δ n i ) [ ( λ 2 ) { 4 ( 1 + λ ) ( w 0 + w 2 ) } ( w 1 ) ( w 0 + 4 ( 1 + λ ) w 1 + w 2 ) 2 ] ( K i 2 ) .
    Differentiating Equation (12) w.r.t ‘n’ and then substituting n = n i + 1 in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we obtain
    P i 2 ( n i + 1 ) = ( π 2 Δ n i ) [ ( λ 2 ) { 4 ( 1 + λ ) ( w 2 + w 3 ) } ( w 1 ) ( w 1 + 4 ( 1 + λ ) w 2 + w 3 ) 2 ] ( K i 2 ) .
    Differentiating Equation (13) w.r.t ‘n’ and then substituting n = n i in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we find
    P i 1 ( n i + ) = ( π Δ n i ) [ ( 2 λ ) { ( 1 + λ ) w 1 + w 0 } ( w 2 ) ( w 0 + 4 ( 1 + λ ) w 1 + w 2 ) 2 ] ( K i 1 ) .
    Differentiating Equation (14) w.r.t ‘n’ and then substituting n = n i + 1 in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we obtain
    P i 1 ( n i + 1 ) = ( π Δ n i ) [ ( 2 λ ) { 2 ( 1 + λ ) ( w 1 w 3 ) } ( w 2 ) ( w 1 + 4 ( 1 + λ ) w 2 + w 3 ) 2 ] ( K i 1 ) .
    Differentiating Equation (15) w.r.t ‘n’ and then substituting n = n i + 1 in the first derivative of rational curve defined on n [ n i , n i + 1 ) , we obtain
    P i ( n i + 1 ) = ( π Δ n i ) [ ( 2 λ ) { w 1 + 2 ( 1 + λ ) ( w 2 ) } ( w 3 ) ( w 1 + 4 ( 1 + λ ) w 2 + w 3 ) 2 ] ( K i ) .

5.2. Open and Close Trigonometric Rational B-Spline Curve

  • Open Rational B-Spline Curve: An open TRBS curve can be constructed by using control point multiplicity as shown in Figure 15 and obtain an end point interpolated curve.
  • Close Rational B-spline Curve: By using the uniform knots (UK), we can construct closed or periodic cubic trigonometric rational B-spline (TRBS) curve as shown in Figure 16. The curve in blue colour is constructed by taking λ = 0.65 . Black colour shows the value of SP λ as λ = 0.3 . Whereas for λ = 0.1 we use red colour. The effect of shape parameter (SP) is observed in the figure below and Table 2 shows the effect of weights.

6. Applications

The proposed scheme was used for the construction of open and closed curves and to design different shapes, such as alphabet, star, butterfly and leaf with the suitable choice of SPs and weights.
  • Alphabet Designing: Twelve control points are used for the designing of an alphabet M. Thus it is seen that by change the value of SP, we obtain a more refined shape of the letter M. In Figure 17a firstly we take λ = 0 and then in Figure 17b we take λ = 0.8 . As we increase the value of SP we see that an alphabet become more finer.
  • Star Designing: The cubic trigonometric rational B-spline (TRBS) curve is used in the designing of star by taking 10 control points. In the star construction, the SP λ = 0.8 is used in black colour. Whereas λ = 0 in red colour indicates the effect of SP and weights as seen in Figure 18.
  • Butterfly design: A butterfly was constructed by using a cubic TBS curve as shown in Figure 19. A total of 92 control points are used in the construction of butterfly. By using different values of SP, such as at λ = 0.5 , the wings of the butterfly are designed. furthermore, for λ = 0.1 the remaining part of the butterfly was designed. The adjustment in the value of SP works efficiently and gives a finer object.
  • 3D cube construction: A geometrical model of a cube in a 3-dimensional manner was designed in the figure below by using cubic TRBs curve. The free parameter λ = 0.1 was used in this model. Different colour curves are used to represent the effect of control points. Thus, it was seen that all the curves lies inside its defining polygon as shown in Figure 20.
  • Leaf Design: Trigonometric B-spline curve was used to create a geometrical design of a leaf. The model of leaf in Figure 21a was formed by using the value of SP λ = 0 . Then we take λ = 0.35 in Figure 21b to construct the geometrical design of a leaf whereas in Figure 21c we take the value of SP at λ = 0.6 .
    Therefore, we see that the shape of the leaf becomes finer as the value of the SP is raised.

7. Conclusions

In this paper, we presented cubic TBS curves in both polynomial and rational forms. Both of the curves satisfied all the basis properties, such as the partition of unity and positivity. The continuity of the proposed scheme was also checked but using the defined basis functions. The flexibility of the preserved basis was also checked by constructing different models—for example, alphabet design, butterfly construction and making a leaf, a star and a model of a cube in 3 D by using appropriate values of the SP and weights. Hence, we conclude that TBS curves are more beneficial than trigonometric Bézier curves. In the future, the surface can be constructed by using the proposed basis. The applicability of the basis functions can be improved by taking more shape parameters and by extending the interval of SPs.

Author Contributions

Conceptualization, A.M., M.N., M.A. and K.T.M.; Formal analysis, A.M., M.N., M.A. and K.T.M.; Funding acquisition, K.T.M.; Investigation, A.M.; Methodology, A.M., M.N., M.A. and K.T.M.; Software, A.M., M.N., M.A. and K.T.M.; Visualization, A.M., M.N., M.A. and K.T.M.; Writing—original draft, A.M., M.N., M.A. and K.T.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This research was supported by the Department of Mechanical Engineering, Shizuoka University, Hamamatsu, Shizuoka 432-8561, Japan. The authors are grateful to the anonymous referees for their valuable suggestions that significantly improved this manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Farin, G.E.; Josef, H.; Myung-Soo, K. Handbook of Computer Aided Geometric Design; Elsevier: Boston, MA, USA; London, UK; New York, NY, USA, 2002. [Google Scholar]
  2. Farin, G.E. Curves and Surfaces for Computer-Aided Geometric Design: A Practical Code; Academic Press Inc.: Cambridge, MA, USA, 1996. [Google Scholar]
  3. Majeed, A.; Abbas, M.; Miura, K.T.; Kamran, M.; Nazir, T. Surface modeling from 2D contours with an application to craniofacial fracture construction. Mathematics 2020, 8, 1246. [Google Scholar] [CrossRef]
  4. Li, F.; Hu, G.; Abbas, M.; Miura, K.T. The generalized H-Bézier model: Geometric continuity conditions and applications to curve and surface modeling. Mathematics 2020, 8, 924. [Google Scholar] [CrossRef]
  5. Hu, X.; Hu, G.; Abbas, M.; Misro, M.Y. Approximate multi-degree reduction of Q-Bézie curves via generalized Bernstein polynomial functions. Adv. Differ. Equ. 2020, 2020, 413. [Google Scholar] [CrossRef]
  6. Sánchez-Reyes, J. Harmonic rational Bézier curves, p-Bézier curves and trigonometric polynomials. Comput. Aided Geom. Des. 1998, 15, 909–923. [Google Scholar] [CrossRef]
  7. González, C.; Albrecht, G.; Paluszny, M.; Lentini, M. Design of C2 algebraic-trigonometric pythagorean hodograph splines with shape parameters. Comput. Appl. Math. 2018, 37, 1472–1495. [Google Scholar]
  8. Pelosi, F.; Farouki, R.T.; Manni, C.; Sestini, A. Geometric Hermite interpolation by spatial Pythagorean-hodograph cubics. Adv. Comput. Math. 2005, 22, 325–352. [Google Scholar] [CrossRef]
  9. Zhu, Y.; Han, X. New trigonometric basis possessing exponential shape parameters. J. Comput. Math. 2015, 33, 642–684. [Google Scholar]
  10. Levent, A.; Sahin, B. Cubic Bézier-like transition curves with new basis function. Proc. Inst. Math. Mech. Natl. Acad. Sci. Azerbaijan 2018, 44, 222–228. [Google Scholar]
  11. Han, X.A.; Ma, Y.; Huang, X. The cubic trigonometric Bézier curve with two shape parameters. Appl. Math. Lett. 2009, 22, 226–231. [Google Scholar] [CrossRef] [Green Version]
  12. Troll, E. Constrained modification of the cubic trigonometric Bézier curve with two shape parameters. Ann. Math. Inform. 2014, 43, 145–156. [Google Scholar]
  13. Chen, Q.; Wang, G. A class of Bézier-like curves. Comput. Aided Geom. Des. 2003, 20, 29–39. [Google Scholar] [CrossRef]
  14. Chen, X.; Tan, J.; Liu, Z.; Xie, J. Approximation of functions by a new family of generalized Bernstein operators. J. Math. Anal. Appl. 2017, 450, 244–261. [Google Scholar] [CrossRef]
  15. Oruç, H.; Phillips, G.M. q-Bernstein polynomials and Bézier curves. J. Comput. Appl. Math. 2003, 151, 1–12. [Google Scholar] [CrossRef] [Green Version]
  16. 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]
  17. Srivastava, H.M.; Ansari, K.J.; Ozger, F.; OdemisOzger, Z. A link between approximation theory and summability methods via four-dimensional infinite matrices. Mathematics 2021, 9, 1895. [Google Scholar] [CrossRef]
  18. Schoenberg, I.J. On trigonometric spline interpolation. J. Math. Mech. 1964, 13, 795–825. [Google Scholar]
  19. Troll, E.M.; Hoffmann, M. Geometric properties and constrained modification of trigonometric spline curves of Han. Ann. Math. Inform. 2010, 37, 165–175. [Google Scholar]
  20. Dung, V.T.; Tjahjowidodo, T. A direct method to solve optimal knots of B-spline curves: An application for non-uniform B-spline curves fitting. PLoS ONE 2017, 12, e0173857. [Google Scholar] [CrossRef]
  21. Han, X. Quadratic trigonometric polynomial curves with a shape parameter. Comput. Aided Geom. Des. 2002, 19, 503–512. [Google Scholar] [CrossRef]
  22. Piegl, L.; Tiller, W. The NURBS Book; Springer: New York, NY, USA, 1995. [Google Scholar]
  23. Marsh, D. Applied Geometry for Computer Graphics and CAD; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  24. Choubey, N.; Ojha, A. Trigonometric splines with variable shape parameter. Rocky Mt. J. Math. 2008, 38, 91–105. [Google Scholar] [CrossRef]
  25. Han, X. Cubic trigonometric polynomial curves with a shape parameter. Comput. Aided Geom. Des. 2004, 21, 535–548. [Google Scholar] [CrossRef]
  26. Yan, L. Cubic trigonometric nonuniform spline curves and surfaces. Math. Probl. Eng. 2016, 2016, 7067408. [Google Scholar] [CrossRef] [Green Version]
  27. Yan, L.; Liang, J. A class of algebraic–trigonometric blended splines. J. Comput. Appl. Math. 2011, 235, 1713–1729. [Google Scholar] [CrossRef]
  28. Hu, G.; Qin, X.; Ji, X.; Wei, G.; Zhang, S. The construction of μ-B-spline curves and its application to rotational surfaces. Appl. Math. Comput. 2015, 266, 194–211. [Google Scholar] [CrossRef]
  29. Majeed, A.; Qayyum, F. New rational cubic trigonometric B-spline curves with two shape parameters. Comput. Appl. Math. 2020, 39, 198. [Google Scholar] [CrossRef]
  30. Pagani, L.; Scott, P.J. Curvature based sampling of curves and surfaces. Comput. Aided Geom. Des. 2018, 59, 32–48. [Google Scholar] [CrossRef]
  31. Walz, G. Identities for trigonometric B-splines with an application to curve design. BIT Numer. Math. 1997, 37, 189–201. [Google Scholar] [CrossRef]
  32. Majeed, A.; Mt Piah, A.R.; Gobithaasan, R.U.; Yahya, Z.R. Craniofacial reconstruction using rational cubic ball curves. PLoS ONE 2015, 10, e0122854. [Google Scholar] [CrossRef]
  33. Majeed, A.; Rafique, M.; Abdullah, J.Y.; Rajion, Z.A. NURBS curves with the application of multiple bones fracture reconstruction. Appl. Math. Comput. 2017, 315, 70–84. [Google Scholar] [CrossRef]
Figure 1. Cubic TBFs curves. (a) λ [ 0 , 8 ) , (b) λ [ 2 , 10 ) , (c) λ [ 4 , 12 ) and (d) λ [ 6 , 14 ) .
Figure 1. Cubic TBFs curves. (a) λ [ 0 , 8 ) , (b) λ [ 2 , 10 ) , (c) λ [ 4 , 12 ) and (d) λ [ 6 , 14 ) .
Mathematics 10 01087 g001
Figure 2. Cubic TBS basis functions at [ 0 , 14 ) .
Figure 2. Cubic TBS basis functions at [ 0 , 14 ) .
Mathematics 10 01087 g002
Figure 3. Effect of SP.
Figure 3. Effect of SP.
Mathematics 10 01087 g003
Figure 4. Symmetry of CTBS functions. (a) Symmetry of the first function. (b) Symmetry of the fourth function. (c) Symmetry of the second function. (d) Symmetry of the third function.
Figure 4. Symmetry of CTBS functions. (a) Symmetry of the first function. (b) Symmetry of the fourth function. (c) Symmetry of the second function. (d) Symmetry of the third function.
Mathematics 10 01087 g004
Figure 5. Plot of the second derivative of the basis function.
Figure 5. Plot of the second derivative of the basis function.
Mathematics 10 01087 g005
Figure 6. Cubic trigonometric B-spline curve.
Figure 6. Cubic trigonometric B-spline curve.
Mathematics 10 01087 g006
Figure 7. Local control property.
Figure 7. Local control property.
Mathematics 10 01087 g007
Figure 8. Convex hull property of the cubic TBS curve.
Figure 8. Convex hull property of the cubic TBS curve.
Mathematics 10 01087 g008
Figure 9. Open curve using CTBS basis functions.
Figure 9. Open curve using CTBS basis functions.
Mathematics 10 01087 g009
Figure 10. Effect of SP on an open B-spline curve.
Figure 10. Effect of SP on an open B-spline curve.
Mathematics 10 01087 g010
Figure 11. Closed curve using CTBS basis functions.
Figure 11. Closed curve using CTBS basis functions.
Mathematics 10 01087 g011
Figure 12. Effect of SP.
Figure 12. Effect of SP.
Mathematics 10 01087 g012
Figure 13. Convex hull property of a rational curve.
Figure 13. Convex hull property of a rational curve.
Mathematics 10 01087 g013
Figure 14. Cubic rational B-spline curve. (a) Effect of control points. (b) Effect of weights.
Figure 14. Cubic rational B-spline curve. (a) Effect of control points. (b) Effect of weights.
Mathematics 10 01087 g014
Figure 15. Open rational B-spline curve.
Figure 15. Open rational B-spline curve.
Mathematics 10 01087 g015
Figure 16. Closed TRBS curve with different weights.
Figure 16. Closed TRBS curve with different weights.
Mathematics 10 01087 g016
Figure 17. Designing an alphabet.
Figure 17. Designing an alphabet.
Mathematics 10 01087 g017
Figure 18. Star designing using rational B-spline curves.
Figure 18. Star designing using rational B-spline curves.
Mathematics 10 01087 g018
Figure 19. Butterfly designing using rational B-spline function.
Figure 19. Butterfly designing using rational B-spline function.
Mathematics 10 01087 g019
Figure 20. 3D cube construction using TRBS.
Figure 20. 3D cube construction using TRBS.
Mathematics 10 01087 g020
Figure 21. Leaf designing using cubic trigonometric B-spline curves. (a) Leaf designing at λ = 0 . (b) Leaf designing λ = 0.35 . (c) Leaf designing λ = 0.6 .
Figure 21. Leaf designing using cubic trigonometric B-spline curves. (a) Leaf designing at λ = 0 . (b) Leaf designing λ = 0.35 . (c) Leaf designing λ = 0.6 .
Mathematics 10 01087 g021
Table 1. Different values of shape parameter λ .
Table 1. Different values of shape parameter λ .
Sr No.Curves λ
1red 0.01
2black 0.35
3magenta 0.55
4blue 0.75
Table 2. Different values of weights for open and closed rational curves.
Table 2. Different values of weights for open and closed rational curves.
value of w 0 91917
value of w 1 7105
value of w 2 81812
value of w 3 72747
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Majeed, A.; Naureen, M.; Abbas, M.; Miura, K.T. Construction of Cubic Trigonometric Curves with an Application of Curve Modelling. Mathematics 2022, 10, 1087. https://doi.org/10.3390/math10071087

AMA Style

Majeed A, Naureen M, Abbas M, Miura KT. Construction of Cubic Trigonometric Curves with an Application of Curve Modelling. Mathematics. 2022; 10(7):1087. https://doi.org/10.3390/math10071087

Chicago/Turabian Style

Majeed, Abdul, Mehwish Naureen, Muhammad Abbas, and Kenjiro T. Miura. 2022. "Construction of Cubic Trigonometric Curves with an Application of Curve Modelling" Mathematics 10, no. 7: 1087. https://doi.org/10.3390/math10071087

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