Figures
Abstract
Fair curves are visually alluring curves and are free of unnecessary design features. A new curve designing method is introduced using the tangential continuous rational cubic Said-Ball curve. Fair curves are achieved by controlling its length and variation in curvature. It has enough degrees of freedom (control points and free parameters). A family of curves can be obtained for different choices for the values of free parameters. The control points are fixed by employing the continuity conditions at the end points of the RCSBC. The optimal values of the remaining free parameters that are the weights of the underlying curve are obtained by constructing the optimization problems with stretch energy and curvature variation energy as the objective functionals. Different numerical examples are constructed to consolidate the effectiveness of the presented methods. Finally, two applications of the proposed techniques is also presented in the end.
Citation: Zafar S, Hussain M (2025) Fair curve designing by Said-Ball curve. PLoS One 20(7): e0324553. https://doi.org/10.1371/journal.pone.0324553
Editor: Haipeng Liu, Coventry University, UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND
Received: August 9, 2023; Accepted: April 26, 2025; Published: July 7, 2025
Copyright: © 2025 Zafar, Hussain. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
Fair curves have earned significant admiration in the past several years, specifically due to their enormous role in industrial design. Their applications can be seen in the automobile industry in the roof designing of cars, aerospace industry for the designing of wings and tails of aircraft, highways and railway tracks, self-driven cars, and domestic machinery. This wide range of applications drew the attention of researchers to the study of fair curve generation. The curves with minimum energy are referred to as fair curves. The importance of constructing fair curves by minimizing their energy over the prior methods can be easily seen. Algorithms of the proposed methods are simple, and their computation time is considerably small. Comparison of the proposed fair curve designing methods to the existing techniques is given in Tables 3 and 6.
Various techniques have been implemented for achieving fair curves. Ahn et al. [1] proposed a technique of controlling the length and bending energy of the quadratic Bézier curve. In [2], the authors proposed an energy model for algebraic splines, i.e., A-spline, considering both stretch and strain energy. Seeking an energy minimizing curve yielded in complex integrals which were solved only by numerical methods. For easy handling and computation, the authors introduced a simpler expression of energy which was faster to compute and yet gave accurate results. Brunnett and Kiefer [3] discussed a method to compute minimum energy spline with the idea that the end point tangent vectors were known. Cantón, Fernández-Jambrina and Vázquez-Gallo [4] derived the conditions for the monotonicity of the curvature of the planar Bézier curves. Choi, Curry and Elkaim [5] proposed a method of minimizing the maximum magnitude of curvature by finding the optimal control lengths of the quadratic Bézier curve. Gang, GuoZhao and WenYu [6] discussed three types of energies of the Bézier curves. The energy functionals were represented in terms of control points. The idea was based on as some of the control points are given and the remaining control points are evaluated by minimizing the energies of the Bézier curve. Habib and Sakai [7,8], presented different transition curves for shape control. Jaklič and Žagar [9,10] proposed the construction of optimal planar cubic Hermite curve by minimization of curvature variation energy and strain energy. In both papers, the authors used interpolating conditions. Johnson and Johnson [11] presented a method of producing fair curve that interpolates a set of control points. The tangent directions at the interpolating points were kept variable and the idea was to obtain them by minimizing the energy of the curve. Juhász and Róth [12] proposed a method of moving control points to obtain minimum energy curves. The shape of the curve was obtained by controlling the strain energy functional while moving of some of the control points and keeping rest of them as fixed. This concept of movable control points to achieve the fair curve was a time-consuming process which decreased the effectiveness of these methods. Li and Zhang [13] presented a
fair cubic Hermite curve by studying the stretch and jerk energy of the cubic Hermite curve. The fair curve was obtained by solving the bi-objective optimization problem. Lu discussed a method of minimizing the jerk energy of a cubic interpolant in [14] and presented a method of minimum strain energy of the planar quintic Bézier curve in [15]. In [16], the authors constructed fair
-cubic and
-quintic Hermite curve using the curvature variation energy of the corresponding curves. In [17], the author proposed a method for achieving fair curve. The curve under consideration was expressed in the form of sequence of vertices instead of the basis functions. These vertices were specified by the derivatives upto the third order. The disadvantage of such methods was the curve produced using the discrete set of vertices were not compatible with the CAD software.
Said Mad Zain and Misro [18] used fractional Bézier curve to construct fair and smooth curve using different types of continuity conditions. Saito and Yoshida [19] derived functions of the lowest possible degree to evaluate the curvature monotonicity of planar and spatial rational Bézier curves. These functions were evaluated in the form of Bernstein basis. The curvature monotonicity was evaluated by subdivision and Bézier clipping. Wang, He, Song and Zhao [20] derived sufficient conditions on Class A matrices to produce 2D Bézier curves with monotone curvature profile. Wolberg and Alfy [21] proposed the interpolation of a monotone data set by making use of cubic splines. The aim was to construct a smooth curve that passes through the control points at the same time satisfying the monotonicity conditions. The authors developed an energy minimization framework for the construction of such smooth curves. Yang [22] introduced Euler Bézier spirals or Euler B-spline spirals which approximated the curvature linearly. Due to specifically defined control points the proposed method interpolated the boundary data by Euler Bézier or B-spline spirals.
The research work proposed in this paper is devoted to the study of constructing fair curves. The rational cubic Said-Ball curve is used for the fair curve construction techniques presented in this paper. The required fair curve is obtained by minimizing the suitable energy functionals. These energy functionals are the stretch energy which is the measure of the curves’ length and the jerk energy which is used to control the variation in curvature of the curve to be fair. The optimal values of free parameters are obtained by minimizing these functionals. The energies are compared with the prior techniques [16,23] manifesting the efficiency of the method. Furthermore, practical applications of the presented techniques are also given showing the effectiveness of our method. Example 1–4(stretch energy) are compared to [23] while Example 5–8(curvature variation energy) are compared to [16].
The paper is arranged as follows: Section 2 discusses the tangent continuous rational cubic Said-Ball curve. Section 3 establishes fair curve construction techniques. Section 4 presents numerical examples along with the comparison with prior techniques. Section 5 concludes the paper.
2. Tangent continuous RCSBC
Ball introduced the cubic polynomials which reformed the manual lofting techniques of the CONSURF surface lofting programme [24]. It was used to design an aircraft design system [24]. The generalized Ball basis is normalized totally positive, and it possesses the shape-preserving property like Bernstein basis [25]. The recursive algorithm of Said-Ball curve for evaluating a polynomial curve runs twice as fast as the de Casteljau algorithm of Bézier curve, therefore the Said-Ball curve computationally efficient than the Bézier curve [26].
The cubic Said-Ball curve uniquely approximates a function but due to the absence of free parameters, Said-Ball curve does not have the ability to modify the shape of the curve. Therefore, a rational function with two free parameters is introduced for the construction of fair curve. It is a special case of rational cubic Said-Ball curve [26] used to represent conics. The introduced rational cubic Said-Ball curve(RCSBC) , is defined as follows:
,
,
,
,
are the rational basis functions of the curve (1) and
are cubic Said-Ball basis functions,
. The control points
and the unknown parameters
are used for shape modification.
By employing tangency constraints, the following control points were determined:
Substituting the values of control points from (2) and (3) in (1), a -continuous rational cubic Said-Ball curve is obtained. Here
are the positive free parameters which are the norms of distances between control points
and
. Along with these parameters and weight parameters, we now have four free parameters to be determined.
3. Fair curve construction algorithm
Construction of fair curves has been a major problem in curve design environment. Fair curves are showing their importance in various fields such as: aerospace industry, in the manufacturing of automobiles, ship-hulls, autonomous vehicles, highway designs and domestic appliances. Minimizing the energy of a curve is an interesting method for achieving a fair curve. These energies play a significant role in the final design of the curve. By minimizing these energies, a fair curve can be achieved.
3.1 Stretch energy
In curve design environment to achieve fair curve, it is needed to avoid unnecessary oscillations of the curve. These oscillations can be avoided by controlling the length of the curve. This can be done by minimizing the length of the curve which is termed as stretch energy. Mathematically, it can be written as, for a planar curve,
for
. The integral is difficult to compute as it resulted in complex non-linear terms. Therefore, to avoid complexity its approximate form [6] is used
The first derivative of the curve,
is given as follows:
The expression for can be obtained by simple computation. Substituting the value of
from (5) in (4). It is seen that the resulting definite integral can only be evaluated by numerical integration. We are using Weddles’ rule of numerical integration [27]. After integration, (4) becomes
Here
,
,
,
,
,
,
.
The mathematical expressions for and
are given in Appendix.
The deduced terms of and
clearly depict that they depend only on
and
. Therefore, the functional can be rewritten as
The desired fair curve is achieved by minimizing this stretch energy for the unknown parameters and
. To ease the complexity of the problem the values of
and
are evaluated by setting
, i.e., when the minimum is reached.
Here and
are the norms of distances of control points
and
, i.e.,
,
. The
and
are the horizontal angles made be the curves at the initial and terminal points. Also,
, for
Now two unknowns are left and the expression can be rewritten as
which we evaluate by the optimization problem-I:
3.1.1 Optimization problem-I.
It follows that the objective function in (8) is a non-linear function. For solving the optimization problem-I, we are using MATLAB software. In which the builtin function “fminunc” is used for minimizing this objective function.
The MATLAB built-in function “fminunc” is used to find the minimum of an unconstrained optimization problem. This function is based on the Quasi-Newton algorithm [28] which is a second order method. The optimization technique is better than the gradient descent methods as the method uses the gradient of the function to update an approximation to the inverse Hessian matrix. These methods are efficient in solving problems with non-convex objective function.
The MATLAB “fminunc” finds a minimum of a function with severable variables. The process starts with an initial guess at which the local minimum of the function is computed.
- Start with an initial guess
at the minimum, set
. Initialize
the
identity matrix.
- Calculate the gradient of the function
and generate the search direction as
.
- Generate the search direction in the direction of
and put
where
minimizes
.
- Compute
by modifying
. Set
and go to step 2.
- Repeat steps 2 and 3 until the function converges to a minimum.
3.2 Curvature variation energy
In various design processes, gradual change in curvature along a curve is required which is often considered as a curve’s fairness measure. Generally, a high degree of fairness is required. This concept of fairness is usually associated with the curvature of the underlying curve. A curve is considered fair if it consists of smoothly varying curvature having a few inflection points and curvature extrema. The curve that satisfies all these requirements is named as minimum variation curve MVC [29].
Mathematically for a planar curve, ,
, with curvature denoted by
, this functional can be written as a change in curvature norm [6],
as follows:
and is known as curvature variation energy. Formula of curvature of parametric curve involves radical terms, which has the computational complexity for evaluation of integral in (9). It also increases approximation error while evaluating the integral involved in (9) by numerical integration technique. Therefore, in literature the approximate form of the curvature variation energy is used which is known as jerk energy [6]. The jerk energy,
, of the curve
is calculated as follows:
is a ninth-degree rational polynomial given in (11).
The expression for can be obtained by simple computation. The following expression is thus obtained after applying Weddle’s rule of integration to the expression (10)
,
Here the complete expressions for the and
are given in the Appendix.
By the values of
and
, the expression (12) clearly depends on the positive real free parameters
and
.
The computation of four unknowns can increase the complexity of the problem. To overcome this complexity, we evaluate the unknowns by putting
. We get
where , for
Now we are left with two unknowns which are to be evaluated by the optimization problem written below:
3.2.1 Optimization problem-II.
The process of minimization of energy functionals, i.e., stretch energy and curvature variation energy can be better explained by Algorithm 1.
Algorithm 1
Step 1. Input the values of initial and final control points, angles and
.
Step 2. Find the values of and
.
Step 3. Evaluate the approximated stretch energy and jerk energy of RCSBC.
Step 4. Attain the optimal values of free parameters and
in optimization problem-I and optimization problem-II.
Step 4. Substitute the obtained values of ,
,
and
in (2), (3) to compute the control points
and
Step 5. Put the extracted values in (1) to achieve optimal fair rational cubic Said-Ball curve.
3.3 Numerical results
This section discusses some numerical examples and the obtained results effectively demonstrating the efficiency of the proposed methods. Letting the terminal points and
be
and
respectively with varying end tangent directions
and
. The different values for these angles are given in Table 1 for stretch energy and in Table 4 for curvature variation energy. The values of unknowns are calculated by solving the optimization problem-I for stretch energy functional is given in Table 2. Similarly, Table 4 consists of values of unknowns obtained by solving the optimization problem-II. The minimum stretch and curvature variation energies are given in Tables 3 and 6, respectively.
The unknowns obtained after optimizing the stretch energy functional are enclosed in Table 2.
The fair curve plots for the above examples are given in Figs 1–4.
Table 3 provides the minimum energies and computation time for the above examples and comparison to the existing techniques.
The input data for curvature variation energy is given in Table 4.
The unknown control points and the values of free parameters obtained after minimizing the curvature variation energy are given in the Table 5.
The fair curve plots for the above examples are given in Figs 5–8.
Table 6 consists of the obtained minimum curvature variation energies.
In the end we present an application of the above proposed method for practical use by constructing a glass. The surface of glass is constructed by using the control points and unit tangents at these points. The construction of the glass is hereby showing the efficiency. The initial data for this construction is given in the Table 7. The profile curve of glass consists of four piecewise cubic curves, see Fig 9. The surface of glass is generated by revolving this profile curve about z-axis, see Fig 10.
An example of visually pleasing shape for the character “C” is established using the rational cubic Said-Ball curve. Initial data for the construction of character “C” is given in the following Table 8.
The character “C” is made up of two segments, the segment above and below the x-axis. The control points and unit tangents are used to produce the shape of the character “C”. The computed values of control points and
are given in Table 9. The corresponding final character of font “C” is given in Fig 11.
In Figs 12 and 13, the top and bottom profile of a ruddy deck in flight is approximated respectively by the cubic Hermite interpolation method and the fair curve designing method proposed here. The data of the profile curve of the ruddy duck flight is taken from [27]. It is clear from Fig 12 that cubic Hermite fails to approximate the profile curve of the bird. But the fair curve designing method proposed in optimization problem-I approximated the profile curve approximately.
4. Conclusion
A method of achieving fair curve is presented in the proposed research work. continuous rational cubic Said-Ball curve is used for contriving the fair curve. The construction procedure consists of optimization problems of minimizing two objective functions which make the curve fair. Comparison of the metric of the proposed method(stretch energy and curvature variation energy) to the existing methods [16,23] is given in Tables 3 and 6. It shows that the methods proposed in this research paper have less stretch energy and curvature variation energy than the existing methods. Moreover, it works in fractions of seconds, so it is efficient as well.
References
- 1. Ahn YJ, Hoffmann C, Rosen P. Geometric constraints on quadratic Bézier curves using minimal length and energy. J Comput Appl Math. 2014;255:887–97.
- 2. Bajaj CL, Chen J, Holt RJ, Netravali AN. Energy formulations of A-splines. Comput Aided Geom Des. 1999;16(1):39–59.
- 3. Brunnett G, Kiefer J. Interpolation with minimal-energy splines. Comput Aided Des. 1994;26(2):137–44.
- 4. Cantón A, Fernández-Jambrina L, Vázquez-Gallo MJ. Curvature of planar aesthetic curves. J Comput Appl Math. 2021;381:113042.
- 5. Choi J, Curry RE, Elkaim GH. Minimizing the maximum curvature of quadratic Bézier curves with a tetragonal concave polygonal boundary constraint. Comput Aided Des. 2012;44(4):311–9.
- 6. Xu G, Wang G, Chen W. Geometric construction of energy-minimizing Béezier curves. Sci China Inf Sci. 2011;54(7):1395–406.
- 7. Habib Z, Sakai M. Pythagorean hodograph quintic transition between two circles with shape control. Comput Aided Geom Des. 2007;24(5):252–66.
- 8. Habib Z, Sakai M. G2 cubic transition between two circles with shape control. J Comput Appl Math. 2009;223(1):133–44.
- 9. Jaklič G, Žagar E. Curvature variation minimizing cubic Hermite interpolants. Appl Math Comput. 2011;218(7):3918–24.
- 10. Jaklič G, Žagar E. Planar cubic G1 interpolatory splines with small strain energy. J Comput Appl Math. 2011;235:2758–65.
- 11. Johnson MJ, Johnson HS. A constructive framework for minimal energy planar curves. Appl Math Comput. 2016;276:172–81.
- 12. Juhász I, Róth Á. Adjusting the energies of curves defined by control points. Comput Aided Des. 2019;107:77–88.
- 13. Li J, Zhang L. Length and curvature variation energy minimizing planar cubic G1 Hermite interpolation curve. J Taibah Univ Sci. 2019;14(1):60–4.
- 14. Lu L. A note on curvature variation minimizing cubic Hermite interpolants. Appl Math Comput. 2015;259:596–9.
- 15. Lu L. Planar quintic G2 Hermite interpolation with minimum strain energy. J Comput Appl Math. 2015;274:109–17.
- 16. Lu L, Jiang C, Hu Q. Planar cubic G1 and quintic G2 Hermite interpolations via curvature variation minimization. Comput Graph. 2018;70:92–8.
- 17. Renka RJ. Shape-preserving interpolation by fair discrete space curves. Comput Aided Geom Des. 2005;22(8):793–809.
- 18. Said Mad Zain SAAA, Misro MY. Shape analysis and fairness metric of generalized fractional Bézier curve. Comp Appl Math. 2022;41(6):276.
- 19. Saito T, Yoshida N. Curvature monotonicity evaluation functions on rational Bézier curves. Comput Graph. 2023;114:219–28.
- 20. Wang A, He C, Song Y, Zhao G. 2D Bézier curves with monotone curvature based on Class A matrices. Comput Aided Geom Des. 2024;110:102279.
- 21. Wolberg G, Alfy I. An energy-minimization framework for monotonic cubic spline interpolation. J Comput Appl Math. 2002;143(2):145–88.
- 22. Yang X. Euler Bézier spirals and Euler B-spline spirals. Comput Aided Geom Des. 2024;112:102361.
- 23. Hussain M, Zafar S, Hussain MZ. Energy-minimizing cubic H-Bézier curve. J Test Eval. 2020;49(4):2707–29.
- 24. Ball AA. CONSURF. Part 1: introduction of the conic lofting tile. Comput Aided Des. 1993;25(8):513–20.
- 25. Delgado J, Peña JM. On the generalized Ball bases. Adv Comput Math. 2006;24(1–4):263–80.
- 26. Qian-qian H, Guo-jin W. Rational cubic/quartic said-ball conics. Appl Math J Chinese Univ. 2011;26(2):198–212.
- 27.
Burden RL, Faires JD. Numerical analysis. 9th ed. Brooks/Cole, Cengage Learning; 2011.
- 28.
Chong EKP, Zak SH. An introduction to optimization. 4th ed. John-Wiley and Sons; 2010.
- 29.
Moreton HP, Minimum curvature variation curves, networks, and surfaces for fair free-form shape design. PhD Thesis. Berkeley: University of California; 1992.