Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Enhancing curve and surface applications with trigonometric polynomial basis functions

Abstract

This article primarily focuses on the utilization and importance of parametric curves in surface design. It delves into the construction and applications of parametric curves, exploring the implementation of trigonometric polynomial basis functions that possess two shape parameters. Initially, these basis functions are employed in constructing both rational and non-rational curves. Later, they are employed to define the surfaces generated by these curves. The discussion includes rational surfaces, tensor product surfaces, and various specialized surfaces. The aim is to provide a comprehensive understanding of the role and potential of parametric curves in surface design.

1 Introduction

Surfaces play a vital role in computer-aided geometric design (CAGD) with diverse applications. They are employed for tasks like fitting experimental data, handling tables of numbers, discretized solutions of differential equations, as well as designing various objects such as aircraft, cars, and other entities. Surfaces are also utilized in modeling human organs and robots [1]. The umbrella term for these applications, particularly in engineering, is known as computer-aided design/computer-aided manufacturing (CAD/CAM). It’s important to note that the choice of surface form depends on the specific application, as there isn’t a one-size-fits-all solution for all problems. CAGD has had a significant impact on fields like medical imaging, geographic information systems, computer gaming, and scientific visualization [2]. Furthermore, computer graphics stands out as one of the earliest and most significant applications of CAGD.

The CAGD is heavily reliant on curve and surface modeling. Computer-based machines and tools are a key contributor in the increased need for parametric curve-based surface modeling. These curves are not only useful for designing purposes but also useful in the path planning of robots. For example in the construction of 3D models of surfaces the path of the machine as well as the properties of desire objects are depending on these curves. Tool paths are curves that are controlled by user-based information in the form of algorithms. As a matter of fact, in the field of CAGD, surfaces based on parametric representation of curves are the most popular and suitable for building and modeling [3].

In CAGD Bézier curves are the most commonly used parametric curves due to their simple and user friendly nature. There are two main components in Bézier curve representation, basis functions and control points. Basis functions led to the generation of smooth continuous curves. while control points are responsible for the description of shape of the curve as Bézier curves mimics the shape of its control polygon.

While designing with traditional Bézier curves the shape of a curve and surface is fixed under a specific set of control points. For a slight change in the shape of the curve or surface one have to change the set of control points which may cause a huge change in the properties of curve or surface.

The problem at hand was to discuss the ways to design a curve or surface without altering the set of control points. This problem is addressed by many researchers purposing different polynomial basis functions which involves the shape parameters [4, 5]. Afterwards a new set of basis functions based on exponential functions is introduced [6]. Further different set of basis functions involving shape parameters and trigonometric functions for curve and surface design is introduced [710].

Later a generalization of Bézier like curves was introduced by extending the idea of shape parameters incorporated in generalized polynomial basis functions [11]. The idea of n − 1 shape parameters for an nth degree polynomial is drawn out [12, 13] for the description of curves and surfaces with an extra control. A generalization of Bézier like curves is given which include Timmer and Wang-Ball basis [14]. A form of generalized basis functions [15], which results in kth degree curve is elaborated for the purpose of curve modeling. The fractional Bézier curve [16] based on generalized fractional basis functions was next in queue to help designers to get a desired shape and design of the product.

Many authors have focused primarily on improving the forms of curves. The fundamental goal of this work, on the other hand, is to present and undertake a thorough investigation of the essential part that shape parameters play in the building of various types of surfaces. This construction is based on the development of a collection of blending functions for all degrees. A generalization of cubic trigonometric basis functions including two shape parameters has been provided for this purpose, allowing the user to construct curves and surfaces with more shape control.

Since surfaces are considered to be a fundamental component in numerous geometric modeling systems. Therefore, the main objective of this study is to offer the concept of surfaces formed by parametric curves, thereby expanding our understanding in this area.

2 Curve designing

Curves play a vital role as the fundamental building blocks for generating surfaces. When exploring the realm of curves, the most promising approach lies in utilizing the parametric representation of curves. Specifically, Bézier-like trigonometric curves are employed as a powerful tool for surface generation due to their control point form. In addition to control points and weight factors, shape parameters play a crucial role in rational and non-rational trigonometric Bézier curves as describing tools for surface generation.

2.1 Trigonometric polynomial functions with shape parameters

For n ≥ 4, the formulation for trigonometric polynomial functions with two shape parameters is as follow: (1) where for j = −1 and jn. The formulation is based on degree three trigonometric polynomial functions with two shape parameters [9], which are defined as: (2) where l1, l2 ∈ [−1, 2] and ϑ ∈ [0, π/2].

Thees trigonometric polynomial functions , defined in Eqs 1 and 2 fulfill the favorable geometric properties:

  1. non-negativity: ,
  2. sum to unity: ,
  3. symmetry: These basis functions are symmetric with respect to the parameters ϑ and
  4. monotonicity: For the specified values of shape parameters l and m, the basis function decreases and increases monotonically.

The graphical illustrations exhibit the behavior of these basis functions with multiple shape parameters are shown in Fig 1. It is clear that all the basis functions are positive. In addition, first and last basis functions are monotonically decreasing and increasing respectively. These functions also satisfies the properties of symmetry.

thumbnail
Fig 1. Trigonometric polynomial basis functions.

(a) n = 4, l1 = l2 = −1, 0, 1, 2, (b) n = 6, l1 = l2 = −1, 0, 1, 2.

https://doi.org/10.1371/journal.pone.0293970.g001

2.2 Rational and non-rational parametric trigonometric Bézier curves

The polynomial trigonometric basis functions defined in Eq 1 play a crucial role in constructing parametric Bézier curves of degree n ≥ 3. These basis functions serve as the essential components that govern the shape and behavior of the curves. The parametric Bézier curves can be represented in the following control point form: (3)

Here represents the parametric Bézier curve, denotes the control points and represents the polynomial trigonometric basis functions. By adjusting the control points and incorporating the appropriate basis functions, we can manipulate and shape the parametric Bézier curves to achieve desired outcomes. The degree of the curve, denoted by n, determines the number of control points and the level of flexibility in the curve’s shape.

To enhance control over the shape of a curve, it is possible to assign positive weights to each control point. This approach gives rise to rational trigonometric Bézier curves, as defined in Eq 4. These curves extend the concept of parametric Bézier curves by incorporating weight factors for the control points. The rational trigonometric Bézier curve can be represented as follows: (4)

In this formulation, denotes the rational trigonometric Bézier curve, represents the control points, signifies the assigned positive weights, and represents the polynomial trigonometric basis functions. The weights provide additional control over the influence of each control point on the resulting curve shape, allowing for more flexibility and customization.

By adjusting the weights assigned to the control points, designers can fine-tune the behavior and shape of the rational trigonometric Bézier curves, catering to specific design requirements and achieving desired visual effects.

The following simplified form can be obtained from Eq 4, (5) where (6)

2.3 Properties of rational and non rational parametric curves

  1. Endpoint interpolation
    When considering the defined curve over the interval , the following properties can be observed for the basis functions:
    For ϑ = 0, for all j ≥ 1, and ,
    , for all jn − 1, and .
    From Eq 3, it follows that the nth degree curve interpolates first and last control points. In addition, the first derivative of parametric curves at end points represents tangents vectors.
    For nth degree rational curve 4, the end points and tangents properties include the corresponding weights as well.
  2. Convex hull
    The non-negativity of basis functions and positive weights ensures the curve to remain in the convex combination of basis and control points along with weights.
  3. Geometric invariance
    The defined curve is geometrically invariant under affine transformation, translation and rotation due the the partition of unity of basis functions.
  4. Symmetry
    The curve is symmetric if the order of control points is reversed.
  5. Shape adjustable property
    The shape of the curve can be controlled using shape parameters as well as assigned weights of the curve.

Shape parameters allow further customization of the curves by adjusting specific characteristics such as curve openness, convexity, or concavity. By manipulating shape parameters, one can achieve a wide range of curve variations, from smooth and flowing profiles to sharp and intricate profile and trajectory curves shown in Fig 2, or even dynamically changing section curves represented in Fig 3. The versatility offered by shape parameters enhances the expressive power of trigonometric Bézier curves, making them indispensable tools in the field of surface generation.

thumbnail
Fig 2. Behavior of shape parameters in non-rational form for l1 = l2 = −1, 0, 1, 2.

(a) profile curve, (b) trajectory curve, (c) 3D view of curves along control polygon, (d) 3D view of curves.

https://doi.org/10.1371/journal.pone.0293970.g002

thumbnail
Fig 3. Behavior of shape parameters in rational form for l1 = l2 = −1, 0, 1, 2.

(a) rational profile curve, (b) rational section curve, (c) 3D view of curves along control polygon, (d) 3D view of rational curves.

https://doi.org/10.1371/journal.pone.0293970.g003

2.4 Advantages of the proposed trigonometric Bézier-like basis

Computer aided geometric design mainly relies on Bézier form for the construction and manipulation of curves and surfaces. The standard Bézier curves possess remarkable properties, and their significance is unquestionable. Therefore, the natural question arises that why there is the need of new set of functions. Whether they are truly necessary and/or is there a meaningful space for their utilization?

There are many reasons, few of which are listed below, that support the idea of introducing new set of functions in different domains. Trigonometric basis functions are one of those emerging functions. Beyond their well-established real-life applications, there are numerous areas where trigonometric-based Bézier-like curves can excel. However, introducing the concept of trigonometric polynomials should not be perceived as a challenge to the importance of standard Bézier curves.

In this era of machine learning and artificial intelligence, the need for new basis functions becomes even more vital. Some other notable examples are:

  1. Computer Graphics and Animation:
    Trigonometric Bézier curves are well-suited for modeling circular and elliptical shapes in computer graphics and animation. They can be used to create smooth arcs and curves in characters, objects, or paths of motion and can also be used to design fonts. Trigonometric Bézier curves can be used in physics simulations to model circular or elliptical motions [17], as they naturally describe these trajectories.
  2. AI-Based Generative Design:
    AI algorithms that generate art can use trigonometric Bézier curves to create aesthetically pleasing, curvilinear designs. In digital art and sculpting applications, artists may use trigonometric Bézier curves to create unique and complex shapes with precise control.
  3. Gesture Recognition:
    Trigonometric Bézier curves can be used in AI systems for recognizing and replicating handwritten or gestural input, where natural curves are important.
  4. Motion Planning and Robotics
    In robotics and autonomous systems, trigonometric Bézier curves can be used for path planning [18], especially when you need robots to follow circular or curved trajectories [19].
  5. Signal Processing:
    Trigonometric functions can be used to model complex wave forms for audio synthesis and signal processing, which can be applied in AI-driven music composition and sound design.
  6. Image Compression:
    Trigonometric Bézier curves can be employed effectively in image compression techniques, offering unique advantages and capabilities compared to traditional methods [20]. These curves can address some of the limitations and challenges associated with traditional image compression methods, providing enhanced image quality, reduced artifacts, and improved scalability for various applications.
  7. Machine Learning for Pattern Recognition:
    In certain pattern recognition tasks, trigonometric Bézier curves can be part of feature extraction techniques when dealing with curved patterns in images or data. Trigonometric-based curves may find applications in cognitive modeling and neuroscientific research, where they can be employed to simulate brain activity patterns and behavior more accurately.
  8. Geometric Approximations:
    Trigonometric polynomials can provide superior approximations for certain complex geometries, which can be useful in fields like computer graphics and geometric modeling.

In summary, while standard Bézier curves have their undeniable merits, the introduction of trigonometric-based alternatives should be viewed as a complementary approach to meet the evolving demands of AI-driven design and various specialized domains. These new functions offer unique advantages and capabilities that can make a substantial difference in specific applications, where precision, expressiveness, and noise reduction are critical factors.

3 Construction of generalized trigonometric Bézier surfaces

A curve is a vector valued function with one parameter, whereas a surface is a vector valued function with two parameters. A curve is also known as a deformation or mapping of a straight line, on the other hand a surface is a mapping of a region , of the –plane into Euclidean three dimensional geometry. Therefore it has the form .

The polynomial trigonometric functions also serves as a major part for designing surfaces. Surface generation is another useful application of these curves. This section discusses ways to construct a surface using parametric trigonometric Bézier curves.

3.1 Rational trigonometric Bézier surfaces

In rational trigonometric Bézier surfaces, non negative weights are associated with each control point. These weights determine the influence of control points on the shape of the surface. The (n + 1) × (m + 1) weights correspond to the grid of control points used to define the surface. By adjusting these weights, designers can control the smoothness and deformation in different regions of the surface. Thus, these weights provide precise control over the surface’s behavior locally. This approach streamlines the design process, preserves the structural integrity of the surface, and offers real-time flexibility for creative exploration and fine-tuning.

A rational trigonometric Bézier surface of degree (n, m) with control points and positive weights is defined as (7) where represents the polynomial trigonometric basis functions defined in Eq 1.

3.2 Tensor product patches

Non-rational Bézier surfaces are created by combining a bidirectional net of control points and the products of univariate Bernstein polynomials. The combination of two curves known as the tensor product surface defines a trigonometric Bézier surface of degree . The tensor product scheme based on parametric representation of surfaces, is perhaps the simplest and most extensively used approach in geometric modeling applications. It employs basis functions as well as geometric coefficients and can be written as: (8) by taking unit weights in 7.

3.3 Properties of trigonometric Bézier surfaces

Bézier patches exhibit numerous properties that are essentially analogous to those of Bézier curves. The defined surfaces 7 and 8 holds following properties listed below.

  1. (i) Non-negativity:
    for all .
  2. (ii) Partition of unity:
    for all .
  3. (iii) End point Interpolation:
    Similar to the Bézier curves, the Bézier surface patch can interpolate four boundary control points. The control points along the control polygon boundaries serve as the control points for the boundary curves of the patch.
  4. (iv) Affine invariant:
    Bézier surfaces exhibit affine invariance, meaning that they remain within the same class of surfaces under affine transformations, including translation, rotation, scaling, and shearing.
  5. (v) Convex hull property:
    The surface formed by a Bézier curve or surface lies within the convex hull of its control points. This means that the surface does not extend beyond the boundary formed by the control points.
  6. (vi) Local control:
    Changes to individual control points primarily affect the portion of the surface near those points. This local control property allows for precise manipulation of the surface.
  7. (vii) Symmetry:
    By re-indexing the control net, mainly taking any corner of control polygon as , ensures that the evaluation yields a patch with an identical shape to the original one.

3.4 Advanced surface construction techniques

Surfaces are characterized as the continuous movement of one or more curves. This section focuses on commonly used surfaces for manufacturing purposes. The construction of swung and swept surfaces is discussed. The main idea behind these techniques is to take one or two curves, or sets of curves, and generate a tensor product surface that smoothly connects these curves [3]. In other words, the given curves serve as isoparametric curves within the surface.

3.4.1 Swung surfaces.

The simplest way to understand the Swung surfaces is their description as a generalization of surface of revolution. Consider the profile curve of degree n using the Eq 5, (9) defined in the xz–plane, and also let (10) be a trajectory curve in the xy–plane. Let the non-zero components of and are and , then swung surface can be defined as (11)

Geometrically is obtained when is swung about the zaxis and at the same time scaling it by a factor of γ and . The invariance under transformation of these curves gives the representation of as (12) where and Both of the curves and can either be open or closed, giving an open or closed surface in both directions respectively.

3.4.2 Swept Surfaces.

Swept surfaces are generated by the movement of a single curve along a curved path. The curve can be moved along a route described by another curve. Let the route of the sweeping curve can be represented by and the cross section curve is defined by . Then a swept surface can be define as [3], (13) where is a 3-by-3 matrix of rotation and a factor for nonuniform scaling of based on . and can be arbitrary curves of any degree. Swept surfaces can be classified into two types based on the rotation matrix. Here only the special type of the surface with identity unit rotation matrix is discussed.

4 Results

4.1 Rational trigonometric surface patch

In this illustration, a rational trigonometric surface patch is defined by taking n = 4 and m = 5. Within this framework, an approach is applied by adjusting the weights assigned to control points while keeping the shape parameters fixed. Despite utilizing the same control net, a user can create multiple distinct surfaces, three of them are shown in Fig 4. These surfaces are characterized by different middle weights while keeping the boundary weights fixed at unity.

thumbnail
Fig 4. Rational quartic-quintic surface.

(a) Qaurtic-quintic control net, (b) Central weights adjusted to 0.8, (c) Central weights adjusted to 0.5, (d) Central weights adjusted to 0.2.

https://doi.org/10.1371/journal.pone.0293970.g004

4.2 Bi-Tensor product patches

The most prevalent and advantageous approach to surface design is through tensor product surfaces. Tensor product patches are obtained by combining two curves of degree n and m. When n = m, we obtain Bi-tensor product patches. For example, when n = m = 4, the resulting surface is referred to as Bi-quartic shown in Fig 5, and for n = m = 5, it is known as Bi-quintic shown in Fig 6. The figures below depict both of these degree 4 and 5 surfaces and demonstrate the influence of shape parameters in constructing tensor product patches.

thumbnail
Fig 5. Bi-Quartic trigonometric patch with multiple shape parameters.

(a) Bi-Qaurtic control net, (b) Corresponding four surfaces, (c) Bi-Quartic surface l1 = l2 = −1, (d) Bi-Quartic surface l1 = l2 = 0, (e) Bi-Quartic surface l1 = l2 = 1, (f) Bi-Quartic surface l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g005

thumbnail
Fig 6. Bi-Quintic trigonometric patch with multiple shape parameters.

(a) Bi-Quintic control net, (b) Corresponding four surfaces, (c) Bi-Quintic surface l1 = l2 = −1, (d) Bi-Quintic surface l1 = l2 = 0, (e) Bi-Quintic surface l1 = l2 = 1, (f) Bi-Quintic surface l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g006

4.3 Open swung surface

A swung surface with open profile curve of degree 5 and open trajectory curve of degree 6 is constructed using Eq 12 and the results are shown in Fig 7.

thumbnail
Fig 7. Open swung surface.

(a) l1 = l2 = −1, (b) l1 = l2 = 0, (c) l1 = l2 = 1, (d) l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g007

4.4 Surface of revolution

A closed sweep surface is also known as surface of revolution and is constructed simply by rotating a 2D curve about any axis, the axis is known as axis of rotation. The surface of revolution is symmetric about the axis of rotation. Taking γ = 1, l = m = 0 and to be a circle, yields the surface of revolution. Fig 8 shows different surface of revolution with various shape parameters when a curve is rotated in the plane.

thumbnail
Fig 8. Surface of revolution with different shape parameters.

(a) l1 = l2 = −1, (b) l1 = l2 = 0, (c) l1 = l2 = 1, (d) l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g008

4.5 Translational surfaces

Translational surfaces can be discussed as a special case of swept surfaces when is an identity matrix for all in Eq 13, then represents a translation of , (14)

This type of surfaces are known as translational sweep surfaces. For illustration an open and a closed sweep surfaces are shown in Figs 9 and 10. Cylinder is a special type of translational surface in which the route curve is a straight line represented in Fig 11.

thumbnail
Fig 9. Open translational sweep surfaces with different shape parameters.

(a) l1 = l2 = −1, (b) l1 = l2 = 0, (c) l1 = l2 = 1, (d) l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g009

thumbnail
Fig 10. Closed translational sweep surfaces with different shape parameters.

(a) l1 = l2 = −1, (b) l1 = l2 = 0, (c) l1 = l2 = 1, (d) l1 = l2 = 2.

https://doi.org/10.1371/journal.pone.0293970.g010

thumbnail
Fig 11. Construction of cylinder for l1 = l2 = 1.

https://doi.org/10.1371/journal.pone.0293970.g011

5 Conclusion

In conclusion, the construction of generalized Bézier-like surfaces using newly defined trigonometric polynomial functions with two shape parameters offers a versatile and flexible approach. By incorporating these shape parameters, the resulting surfaces can be adjusted and manipulated to achieve a wide range of desired shapes and characteristics. This allows for enhanced control and customization in surface design. The use of trigonometric polynomial functions provides a rich mathematical foundation that enables the creation of complex and intricate surface geometries. Overall, this approach opens up exciting possibilities for advanced surface construction and opens new avenues for innovation in various fields such as computer-aided design, manufacturing, and visual effects.

References

  1. 1. Ahlberg JH, Nilson EN, Walsh JL. The theory of splines and their applications. Mathematics in science and engineering. 1967.
  2. 2. Farin GE. Curves and surfaces for CAGD: a practical guide Morgan Kaufmann; 2022.
  3. 3. Piegl L, Tiller W. The NURBS book. Springer Science & Business Media 1996.
  4. 4. Yang L, Zeng XM. Bézier curves and surfaces with shape parameters. International Journal of Computer Mathematics. 2009;86(7):1253–1263.
  5. 5. Jing Z, Xikun L. Extension of the quadratic Bézier curves based on the linear combination of basic functions. International Conference on Computer Science and Automation Engineering. vol. 1. IEEE; 2011. p. 178–181.
  6. 6. Zhu Y, Han X. Curves and surfaces construction based on new basis with exponential functions. Acta applicandae mathematicae. 2014;129(1):183–203.
  7. 7. Bashir U, Abbas M, Abd Majid A, Ali JM. The rational quadratic trigonometric Bezier curve with two shape parameters. Ninth International Conference on Computer Graphics, Imaging and Visualization. IEEE; 2012. p.31–36.
  8. 8. Bashir U, Abbas M, Ali JM. The and rational quadratic trigonometric Bézier curve with two shape parameters with applications. Applied Mathematics and Computation. 2013;219(20):10183–10197.
  9. 9. Bashir U, Ali JM. A rational trigonometric spline to visualize positive data. AIP conference proceedings. American Institute of Physics. 2014;1605(1):286–291.
  10. 10. Bashir U, Ali JM. Rational cubic trigonometric Bézier curve with two shape parameters. Computational and Applied Mathematics. 2016;35(12):285–300.
  11. 11. Hu G and Bo C, Wei G, Qin X. Shape-adjustable generalized Bezier surfaces: Construction and it is geometric continuity conditions. Applied Mathematics and Computation. 2020;378:125215.
  12. 12. Han XA, Ma Y, Huang X. A novel generalization of Bézier curve and surface. Journal of Computational and Applied Mathematics. 2008;217(1):180–193.
  13. 13. Qin X, Hu G, Zhang N, 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. Applied Mathematics and Computation. 2013;223:1–16.
  14. 14. Bak-Bezier SPL. A Generalization of a Bezier-Like Curve.
  15. 15. Ammad M, Misro MY, Ramli A. A novel generalized trigonometric Bézier curve: properties, continuity conditions and applications to the curve modeling. Mathematics and Computers in Simulation. 2022;194:744–763.
  16. 16. Said Mad Zain SAAA, Misro MY, Miura KT. Generalized fractional Bézier curve with shape parameters. Mathematics. 2021;9(17):2141.
  17. 17. Chen C, Qin H, Yin Z. Trajectory planning for omni-directional mobile robot based on Bezier curve, trigonometric function and polynomial. Intelligent Robotics and Applications: 5th International Conference, ICIRA 2012, Montreal, QC, Canada, October 3-5, 2012, Proceedings, Part III 5. Springer 2012. p. 352–364.
  18. 18. Bulut V. Path planning for autonomous ground vehicles based on quintic trigonometric Bézier curve: Path planning based on quintic trigonometric Bézier curve. Journal of the Brazilian Society of Mechanical Sciences and Engineering. 2021;43(2):104.
  19. 19. Bulut V. SP-search-based path planning algorithm for mobile robots using quintic trigonometric Bézier curves. Concurrency and Computation: Practice and Experience. 2022;34(9):6493.
  20. 20. Li J, Zhao D. An investigation on image compression using the trigonometric Bézier curve with a shape parameter. Mathematical problems in Engineering. 2013;2013.