Geometric Characteristics and Constructions of Cubic Indirect-PH Curves

Abstract

The geometric characteristics and the construction for cubic indirect Pythagorean-hodograph (indirect-PH) curves are presented in this study. By introducing an auxiliary control point and a parameter respectively, two geometric characteristics in terms of quantities related to Bézier control polygon of the curve are given. Furthermore, based on the derived conditions we provide a new geometric modeling approach for the construction of cubic indirect-PH curves in detail. And at the end of this paper several numerical examples are presented to show the feasibility and validity of our algorithm.

Share and Cite:

Shen, Y. and Peng, X.X. (2022) Geometric Characteristics and Constructions of Cubic Indirect-PH Curves. Open Access Library Journal, 9, 1-9. doi: 10.4236/oalib.1109439.

1. Introduction

Offsetting has many applications such as Computer Numerical Control (CNC) machining of digital motion along curved paths, robotics and the design of highways and railways. The Bézier model has been exhaustively studied in computer aided geometric design (CAGD) [1] , but the Bézier curve sometimes may not have a rational offset [2] . This inspired a lot of research on offset approximation [3] - [8] .

In this paper, we discuss a class of planar polynomial curves with rational offsets. A cubic Bézier curve P ( t ) = ( x ( t ) , y ( t ) ) have rational offsets if and only if the squared norm of its hodograph ( x ( t ) , y ( t ) ) has at most two complex roots of odd multiplicity, which can be classified into two classes: Pythagorean Hodographs (PH) curves and indirect-PH curves. The former is familiar to us and the latter can have rational PHs after reparameterization by a fractional quadratic transformation.

So far, PH curves and their applications have been studied intensively. Farouki and Sakkalis proposed an intuitive geometric condition on the Bézier control polygon for a cubic curve to be a PH curve, which is conditions in terms of lengths and inner angles of its control polygon legs [9] , Fang and Wang presented a necessary and sufficient geometric characterization of PH quartics in terms of Bernstein-Bézier forms [10] . This method was also proposed for designing quintic PH curves in [11] . Qin et al. had already established the necessary and sufficient conditions for cubic H-Bézier curves to be PH curves. Based on the H-Bézier curve, a new method for their construction is provided in [12] . However, to date, Much less is known for indirect-PH curves. An in-depth analysis of geometric conditions for properly parameterized cubic indirect-PH curves was given in [13] . This provided a geometric method for the construction of G1 Hermite interpolation. Hormann took a closer look at quartic indirect-PH curves and derived algebraic as well as geometric characterizations for an important subset of these curves [14] . With the given C1 Hermite data, a new method for the construction of the quintic indirect-PH curves was derived by specifying a real parameter [15] . By employing Gaussian elimination and geometric approaches, Li got geometric characteristics of quintic indirect-PH curves [16] . Except for some brief description of cubic indirect-PH curves in [13] , no work has been published on the full geometric characterization of them and no attention has been paid to the construction of cubic indirect-PH curves based on the simple geometric constraints of Bézier control polygons.

In this paper we focus on cubic indirect-PH curves. The auxiliary control points are introduced to deal with this problem. It leads to a more succinct proof of the necessary and sufficient conditions for a planar cubic Bézier curve to be an indirect-PH curve. And based on these conditions a new geometric modeling approach for the construction of the cubic indirect-PH curves is presented. This paper is organized as follows. In Section 2, the polynomial curves with rational offsets are briefly reviewed, which are the foundation of our following work. Section 3 presents the geometric relationship among the Bézier control points of indirect-PH cubics. Based on these, the geometric construction of indirect-PH curves is discussed in Section 4. Section 5 provides some examples and Section 6 concludes the paper.

2. Preliminaries

Let R and C denote the sets of all real numbers and complex numbers, respectively. In this paper, we will be denoting a complex number by a single bold character.

In the complex representation of R 2 , a planar parametric curve P ( t ) = ( x ( t ) , y ( t ) ) can be identified with a complex-valued function P ( t ) = x ( t ) + i y ( t ) . The necessary and sufficient condition for a planar cubic curve to have rational offsets can be described by the following theorem [16] .

Theorem 2.1. In the complex representation, a planar curve P ( t ) = x ( t ) + i y ( t ) has rational parameterized offsets, if and only its hodograph P ( t ) can be written in the complex form as

P ( t ) = ρ ( t ) R ( t ) W 2 ( t ) (2.1)

where

R ( t ) = λ t + 1 + i μ t , W ( t ) = u ( t ) + i v ( t ) , (2.2)

and ρ ( t ) is the polynomial of t with real coefficient, λ , μ R and u ( t ) and v ( t ) are relatively prime.

Specially, where R ( t ) = 1 , such P ( t ) is called a PH curve. Otherwise, P ( t ) is a complex polynomial, the curve P ( t ) is not a PH curve. Therefore, let

b = ( λ + 1 ) 2 + μ 2 , c = ( λ + 2 ) 2 + μ 2 (2.3)

and B i 2 ( t ) = C 2 i t i ( 1 t ) n i are quadratic Bernstein polynomials, we introduce a quadratic transformation:

t ( s ) = B 1 2 ( s ) + μ B 2 2 ( s ) λ B 0 2 ( s ) + ( 1 + α ) B 1 2 ( s ) + μ B 2 2 ( s ) (2.4)

the plannar curve P ( t ) has a rational Pythagorean hodograph. In fact

( λ t + 1 ) 2 + ( μ t ) 2 = ( ( c + 1 b ) B 0 2 ( s ) + 1 2 ( c 2 ( 1 b ) 2 ) B 1 2 ( s ) + b ( c 1 + b ) B 2 2 ( s ) ( c + 1 b ) B 0 2 ( s ) + ( 1 + b ) B 1 2 ( s ) + ( c + 1 b ) B 2 2 ( s ) ) 2 (2.5)

Therefore we called such curves indirect-PH curves.

In this paper, we focus on cubic indirect-PH curves.

3. Geometric Characteristics of Cubic Indirect-PH Curves

In this section, geometric constraints on the control polygon is formulated that will guarantee the indirect-PH property. The control points of indirect-PH curves are P 0 , , P 3 .

The necessary and sufficient condition for a cubic properly-parameterized curve to be an indirect-PH curve is given in [13] as follows:

Theorem 3.1. A cubic properly-parameterized curve P ( t ) = ( x ( t ) , y ( t ) ) is an indirect-PH curve if and only if

( x ( t ) , y ( t ) ) = [ α ( 1 t ) + β ] [ T 0 ( 1 t ) + T 1 t ] (3.1)

where T 0 , T 1 are two non-parallel vectors and T 0 0 , T 1 0 . α , β are two numbers satisfying α 2 + β 2 0 .

For a given cubic Bézier curve P ( t ) , with control points P i , i = 0 , 1 , 2 , 3 ,

P ( t ) = ( x ( t ) , y ( t ) ) = i = 0 3 P i B i 3 ( t ) , t [ 0 , 1 ] (3.2)

where B i 3 ( t ) = ( 3 i ) ( 1 t ) 3 i t i are Bernstein polynomials.

Note that Equation (3.1) can be re-written as

( x ( t ) , y ( t ) ) = α T 0 ( 1 t ) 2 + ( α T 1 + β T 0 ) t ( 1 t ) + β T 1 t 2

By matching the coefficients of its Bernstein polynomials with (3.2), we have

{ 3 ( P 1 P 0 ) = α T 0 3 ( P 3 P 2 ) = β T 1 6 ( P 2 P 1 ) = α T 1 + β T 0 (3.3)

Hence, the curve is a cubic indirect-PH curve if and only if system of Equation (3.3) has a solution. Notably, system of Equation (3.3) is a constraint system of three nonlinear equations, which is difficult to be directly solved in general. However, the above system can be solved by using geometric methods owing to the introduction of the auxiliary point Q .

We give an auxiliary point Q , and Q is on lines P 0 P 1 and P 2 P 3 , respectively, such that:

Q = P 1 + 1 6 β T 0 = P 2 1 6 α T 0 (3.4)

In Figure 1 it is an example of the auxiliary point for a cubic indirect-PH curve.

Now we give a geometric characteristic condition for a cubic Bézier curve to be an indirect-PH curve.

Theorem 3.2. A cubic Bézier curve P ( t ) in (3.2) is an indirect-PH curve if and only if

Δ P 0 Δ P 2 = 4 Q P 1 P 2 Q (3.5)

Figure 1. The Bézier control polygon with auxiliary point Q.

where Δ P 0 = P 1 P 0 , Δ P 2 = P 3 P 2 .

Proof. From Equation (3.3) and Equation (3.4), we have

{ α T 0 = 3 Δ P 0 β T 1 = 3 Δ P 2 β T 0 = 6 ( Q P 1 ) α T 1 = 6 ( P 2 Q ) (3.6)

The system has solutions if and only if all the equations are compatible. Because the constraints on angles have been satisfied following the scheme of selection of auxiliary point Q , the conditions on lengths of legs (3.5) can be immediately derived.

According to T 0 T 1 = α T 0 α T 1 = β T 0 β T 1 , we derive:

Q P 1 Δ P 0 P 2 Q Δ P 2 = 1 4 (3.7)

In other words, system (3.7) is equivalent to the system (3.5).

Every step above is reversible, so the proof of sufficiency is omitted.

Next we get the equivalent geometric characteristic condition by introducing

parameter h = β α . In order to satisfy the criterion that the integral of the square

norm of the second order derivative of the curve is minimized, the reference [13] has proved that h is within ( 0.49,2.04 ) . The parameter h can be used for shape control.

Theorem 3.3. A properly parameterized cubic curve P ( t ) is an indirect-PH curve, if and only if its Bézier control edges satisfy

2 Δ P 1 = 1 h Δ P 2 + h Δ P 0

where h = β α and h R .

Proof. From the first two equations of (3.3) we can get

{ 3 β α Δ P 0 = β T 0 3 α β Δ P 2 = α T 1 (3.8)

Substituting them into the third equation of (3.3) gives

6 Δ P 0 = 3 α β Δ P 2 + 3 β α Δ P 0

Let h = β α . We have

2 Δ P 1 = 1 h Δ P 2 + h Δ P 0

Similarly, every step above is reversible, so the proof of sufficiency is omitted.

4. Geometric Construction of Cubic Indirect-PH Curves

The edges of polygons are widely used in CAGD due to their intrinsic invariance. The cubic indirect-PH curves can be obtained by constructing the control polygon. In this section, according to geometric modeling and the establishment of Cartesian coordinates, a new algorithm for construction is proposed by Theorem 3.2.

Given triangle Δ P 0 Q P 3 , let the ratio of the lengths of its two sides be

Q P 3 P 0 Q = ρ 1 and 0 < P 0 Q P 3 = θ < π . P 1 and P 2 along sides P 0 Q and

Q P 3 should be properly chosen in order to assure P ( t ) to be an indirect-PH curve.

Give two vectors e 1 = Q P 0 and e 2 = P 3 Q . The coordinates of P 1 and P 2 are obtained:

{ P 1 = λ e 1 + P 0 P 2 = μ e 2 + P 3

where λ 0, μ 1 .

Cartesian coordinates can be established with the origin at vertex Q of the triangle Δ P 0 Q P 3 and Q P 0 as the X axis. Let P 1 = ( 0,1 ) , e 1 = ( 1,0 ) and e 2 = ρ ( cos θ , sin θ ) . In this case, the coordinates of four control points are as follows:

{ P 0 = ( 1 , 0 ) P 1 = ( 1 λ , 0 ) P 2 = ( 1 μ ) ρ ( cos θ , sin θ ) P 3 = ρ ( cos θ , sin θ ) (4.1)

The drawing of the triangle and control polygon are shown in Figure 2.

In order to make sure that constraint (3.5) holds, let

Q P 1 Δ P 0 = h 2 , P 2 Q Δ P 2 = 1 2 h

Solving these two equations gives:

λ = 2 h + 2 , μ = 2 h 1 + 2 h (4.2)

According to Theorem 3.3, h is a parameter that can be used for shape control. By substituting (4.2) into (4.1), the coordinates of P 1 and P 2 can be obtained.

5. Numerical Examples

We shall illustrate with some graphical examples in this section. The condition for a cubic indirect-PH curve to have no cusp is h is within (0.49, 2.04) in [13] . When the angle between two edges of the control polygon is acute, for example,

θ = π 3 . Set ρ = 1 and the parameter h = 3 2 , h = 2 respectively. We can obtain the coordinates of P 0 , P 1 , P 2 , P 3 , as shown in Figure 3.

Figure 2. Triangle and control polygon.

Figure 3. The angle between two edges of the control polygon is acute. (a) h = 3 2 ; (b) h = 2 .

When the angle between two edges of the control polygon is a right angle. Set

ρ = 1 and the parameter h = 1 , h = 3 2 respectively. By the method presented

in Section 4 we can obtain the coordinates of P 0 , P 1 , P 2 , P 3 , as shown in Figure 4.

When the angle between two edges of the control polygon is obtuse, for example,

θ = 2 π 3 . Set ρ = 1 and the parameter h = 1 , h = 3 2 respectively. We can obtain

the coordinates of P 0 , P 1 , P 2 , P 3 , as shown in Figure 5.

Therefore, the cubic Bézier curves can be converted to a cubic indirect-PH curves by modifying the value of the parameter of h. illustrative examples demonstrate that it is feasible to construct a good approximate cubic indirect-PH curves using this algorithmm.

Figure 4. The angle between two edges of the control polygon is a right angle. (a) h = 3 2 ; (b) h = 1 .

Figure 5. The angle between two edges of the control polygon is obtuse. (a) h = 1 (a) h = 3 2 .

6. Conclusion

We have made some efforts to give geometric characteristics for a planar cubic curve to be a cubic indirect-PH curve. They are expressed by the control polygon and auxiliary control point and a parameter respectively. Furthermore, we provide the method for the construction of cubic indirect-PH curves, which is shown effective. Based on this, a future study of freedom curve design by cubic indirect-PH curves could be considered.

Conflicts of Interest

All authors declare no conflicts of interest in this paper.

References

[1] Farin, G., Hoschek, J. and Kim, M. (2002) Handbook of Computer Aided Geometric Design. Elsevier, Amsterdam.
[2] Farouki, R.T. and Neff, C.A. (1990) Analytic Properties of Plane Offset Curves. Computer Aided Geometric Design, 7, 83-99. https://doi.org/10.1016/0167-8396(90)90023-K
[3] Klass, R. (1983) An Offset Spline Approximation for Plane Cubic Splines. Computer-Aided Design, 15, 297-299. https://doi.org/10.1016/0010-4485(83)90019-2
[4] Tiller, W. and Hanson, E.G. (1984) Offsets of Two-Dimensional Profiles. IEEE Computer Graphics and Applications, 4, 36-46. https://doi.org/10.1109/MCG.1984.275995
[5] Coquillart, S. (1987) Computing Offsets of B-Spline Curve. Computer-Aided Design, 19, 305-309. https://doi.org/10.1016/0010-4485(87)90284-3
[6] Pham, B. (1992) Offset Curves and Surfaces: A Brief Survey. Computer-Aided Design, 24, 223-229. https://doi.org/10.1016/0010-4485(92)90059-J
[7] Elber, G., Lee, I.K. and Kim, M.S. (1997) Comparing Offset Curve Approximation Methods. IEEE Computer Graphics and Applications, 17, 62-71. https://doi.org/10.1109/38.586019
[8] Maekawa, T. (1999) An Overview of Offset Curves and Surfaces. Computer-Aided Design, 31, 165-173. https://doi.org/10.1016/S0010-4485(99)00013-5
[9] Farouki, R.T. and Sakkalis, T. (1990) Pythagorean Hodographs. IBM Journal of Research and Development, 34, 736-752. https://doi.org/10.1147/rd.345.0736
[10] Wang, G. and Fang, L. (2009) On Control Polygons of Quartic Pythagorean-Hodograph Curves. Computer Aided Geometric Design, 9, 1006-1015. https://doi.org/10.1016/j.cagd.2009.08.003
[11] Fang, L. and Wang, G. (2018) Geometric Characteristics of Planar Quintic Pythagorean-Hodograph Curves. Journal of Computational and Applied Mathematics, 330, 117-127. https://doi.org/10.1016/j.cam.2017.08.014
[12] Qin, X., Hu, G., Yang, Y. and Wei, G. (2014) Construction of PH Splines Based on H-Bézier Curves. Applied Mathematics and Computation, 238, 460-467. https://doi.org/10.1016/j.amc.2014.04.033
[13] Lu, X., Zheng, J., Cai, Y. and Zhao, G. (2016) Geometric Characteristics of a Class of Cubic Curves with Rational Offsets. Computer-Aided Design, 70, 36-45. https://doi.org/10.1016/j.cad.2015.07.006
[14] Hormann, K. and Zheng, J. (2020) Algebraic and Geometric Characterizations of a Class of Planar Quartic Curves with Rational Offsets. Computer Aided Geometric Design, 79, Article ID: 101873. https://doi.org/10.1016/j.cagd.2020.101873
[15] Fang, L. and Wang, G. (2017) Construction of a Class of Quantic Curves with Rational Offsets. Scientia Sinica Information, 47, 1694-1708. (In Chinese) https://doi.org/10.1360/N112016-00240
[16] Li, Y. and Fang, L. (2021) Geometric Characteristics of Quintic Indirect-PH Curves. Scientia Sinica Information, 51, 808-821. (In Chinese) https://doi.org/10.1360/SSI-2019-0219

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.