**Journal of Applied Mathematics and Physics**

Vol.04 No.01(2016), Article ID:62627,8 pages

10.4236/jamp.2016.41002

Multi-Degree Reduction of Bézier Curves with Distance and Energy Optimization

Xuli Han, Jing Yang

Department of Mathematics and Statistics, Central South University, Changsha, China

Received 11 November 2015; accepted 5 January 2016; published 12 January 2016

ABSTRACT

In this paper, we propose a new approach to the problem of degree reduction of Bézier curves based on the given endpoint constraints. A differential term is added for the purpose of controlling the smoothness to a certain extent. Considering the adjustment of second derivative in curve design, a modified objective function including two parts is constructed here. One part is a kind of measure of the distance between original high order Bézier curve and degree-reduced curve. The other part represents the second derivative of degree-reduced curve. We tackle two kinds of conditions which are position vector constraint and tangent vector constraint respectively. The explicit representations of unknown points are presented. Some examples are illustrated to show the influence of the differential terms to approximation and smoothness effect.

**Keywords:**

Bézier Curve, Degree Reduction, Endpoint Constraint, Differential Constraint, L_{2}-Norm

1. Introduction

Degree reduction of Bézier curves is an important and classical problem in CAGD (Computer Aided Geometric Design). It is to approximate the given curve with a Bézier curve of a lower degree while the approximation error is minimized. Degree reduction of curves is needed for the convenience of data exchange and transmission. It is frequently used in data compression as well. Besides, it is also useful for computing roots of polynomials [1].

Many researches dealing with this problem have been done in recent years. These researches can be classified by norm which the distance between polynomials is measured in, such as -norm [2] [3], L_{1}-norm [4], -norm [5] [8], or -norm [9] [10]. And the constrained degree reduction of Bézier curves with different parametric [6] [11] and geometric [5] [7] [12] continuity attend points have been studied in many previous papers.

The modification of conventional optimal function has also become a research hotspot recently. Lu [12] presented a novel approach to consider the multi-degree reduction of Bézier curves with -continuity in L_{2}-norm, and the modification optimal approximation is obtained by minimizing the objective function based on the L_{2}-error between the two curves. For solving the similar degree reduction problem, Przemysław [13] impose restrictions of the control point area to get more intuitive location of the control points. Xu [14] used the method of energy-minimizing to construct curves.

In this paper, we add a differential item which is the second derivative of the degree-reduced curve based on the conventional optimal function. It is well known that second derivative of a curve plays a leading role in curvature decision. In other words, second derivative can reflect curvature to a great extent. What is more, curvature and smoothness are closely linked and a sudden change of curvature may influence the smoothness of the curve. So the smoothness can be controlled to a certain extent by using the additional term. The distance part and the differential part are combined with a weight here. L_{2}-norm is taken to measure the distance between the degree-reduced curve and the given one. It turns to be the conventional optimal function when ω = 0 and ω = 1 represents square of the norm of second derivative of the degree reduced curve.

2. Description about Degree Reduction of Bézier Curves

In this paper, denotes the Euclidean norm which means that for a vector. Let denote the space of all parametric polynomials in of a degree at most n. Let the vector be control points of Bézier curve in the following form,

(1)

where denote the Bernstein polynomials given by. The product of two Bernstein polynomials is given by

The integral of a Bernstein polynomial is

and the derivative is

(2)

In this paper, we define a -matrix, whose elements are the integrals of products of Bernstein polynomials as follows:

(3)

The matrix is real, symmetric and positive definite, which had been proved in [13].

The forward differential operator is defined as follows,

where. The -th derivatives of the Bézier curve expressed in Equation (1) at endpoints are given by

(4)

The problem we are considering is to find a Bézier curve of degree m

(5)

which is the multi-degree reduction curve of and. Let the vector be control points and of Bézier curve.

In previous researches, least square error which represents the distance between the given Bézier curve and degree-reduced curve is always taken as an optimal function [5] [13] [14], then the optimal problem can be:

(6)

Besides, there are some continuity constraint conditions attend points. [6] [8] and [12] are mainly about and -continuity at different endpoints, r and are the orders of continuity at and respectively. Multi-degree reduction of Bézier curves with, and -continuity at the endpoints of the curve are derived in [5]. Two types of geometric constraints are presented in [7]. One is and -continu- ity at different endpoints and the other one is -continuity at both sides.

There are however some other factors needed to consider in curve design, such as smoothness or energy. Note that in this paper, as second derivative has decisive effect on curvature, we add a differential term which is the second derivative of degree-reduced curve based on the conventional optimal function mentioned above. So the smoothness or energy can be controlled to a certain extent by using the differential term. What is more, for example, the process of adjusting this term becomes useful when global or local acceleration in movement needs to be lowered so that the speed variation can be more uniform in certain part.

For the convenience of adjusting the smoothness degree of degree-reduced curve, we denote an objective function

(7)

with a weight as the modified objective function. Adding the denominator in the first term is designed to keep the consistency of operation.

To solve the unknown control points of, a minimization of Equation (7) is required:

(8)

It is obvious that Equation (8) turns to the conventional optimal problem Equation (6) when.

3. Degree Reduction with Endpoint Constraints

In this section, the explicit matrix expressions of unknown points are given. Two kinds of parametric continuity are taken into consideration. For and continuity constraints mentioned above, considering the meaning of continuity, we would like to rename it endpoint constraints in the following. One is position vector constraint, the other one is tangent vector constraint.

Firstly, we simplify the derivative part of the modified objective function in the following by using Equation (2) and Equation (3),

where

and is a matrix described in Equation (3).

For the second part of the modified optimal function, notice that

where. Then this part can be rewritten as:

where the four matrixs and are all derived from Equation (3). What is more, is obviously the transposition of, and here are both real, symmetric and positive definite.

So for the modified optimal function, we have

(9)

4. Position Vector Constraint

For constraint of position at endpoints to curves and, we set

(10)

which means the points and in degree-reduced curve are known by Equation (4) under this situation,

So there are points left to be determined. We take partial of Equation (9) respect to these unknown points to get the extremum of Equation (8), then:

(11)

where is an unit vector and superscript k means the “1” is at the (k + 1)th position of this vector. Let, then Equation (11) can be simplified further as:

It is obvious that is a vector which can be written as. Let be the vector of unknown points, namely, under the condition of constraints at endpoints and. Then we have

(12)

where. Thus the positions of remaining unknown points can be worked out by solving the equations (12).

5. Tangent Vector Constraint

In this section, for constraint of tangent vector at endpoints to curves and, we let

(13)

and we get

Then the vector of unknown points turns to. Similar to the previous section, we take partial of Equation (9) respect to these unknown points to get the extremum of Equation (8), then we have:

(14)

where and

Same as 3.1, the positions of remaining unknown points can be worked out by solving the Equations (14).

6. Graphic Experiments

We first consider a given planar Bézier curve of degree eleven (). Figure 1 gives the comparison of the original high order Bézier curve with degree reduced curves () of different weight under constraint (10). Figure 2 shows the constraint (13). The red one is the degree reduced curve derived from the conventional optimal function of Equation (6). The green and blue ones are obtained using the modified method of Equation

(8). In Table 1, represents the norm, represents the norm with endpoint constraint (10) and means the same norm with endpoint constraint (13). Furthermore, denotes the maximum of A, denotes the mean of A and 100 points are taken uniformly.

Figure 1. Degree reduced curves with constraint (10).

Table 1. Effects of different parameters to second derivative ofdegree-reduced curves in Example 1.

Figure 2. Degree reduced curves with constraint (13).

The maximum of second derivative of a curve can represents its smooth degree to some extent while the mean can reflect its energy. We can see that curves in Figure 1 look smoother than ones in Figure 2 which seems the smoothing term has a more remarkable effect on curves with endpoint constraint (10) and data in Table 1 proves this guess. In Figure 1, combining with the data in Table 1, increasing the weight of smoothing term can improve the smooth degree of degree-reduced curves based on the endpoint constraint (10). In a word, degree-reduced curves derived from the optimal function with an additional differential term are global smooth under the endpoint constraint (10), but local smooth under endpoint constraint (13) which is more restricted.

The following example is a Bézier curve of degree nineteen (). A degree-reduced curve with degree of seven () is needed to approximate the original one. Two kinds of endpoint conditions are presented. We can see from these two figures that the trend of original Bézier curve always changes to an opposite direction. As the weight increases, degree-reduced curves in Figure 3 with endpoint constraint (10) become smoother and the related second derivative values become lower than ones in Figure 4, either maximum or mean. Second derivative values should be decreased locally to maintain the original endpoint properties which makes the degree-reduced curves flatter where second derivative changes little. Furthermore, another important conclusion derived from two tables is degree reduction can help on curve smoothing. The reason for this is the process of degree reduction reduce the number of control points which will relieve the restraint conditions at endpoints.

We consider a closed curve with degree of thirteen () in the last example. From the variation of control points with different weight, the conclusion we get above is reinforced: degree-reduced curves are global smooth under the endpoint constraint (10), but local smooth under the other one. If the control points change uniformly just like the red dotted in Figure 5, the smoothing term will make an obvious effect. Otherwise the control points after degree reduction change little which is shown in Figure 6.

7. Conclusion

In this paper, we introduce a new approach to generate Bézier curve with an additional smoothing term based on the conventional objective function. Sometimes when the smoothness of a curve needs to be adjusted globally or locally within a smaller range, adding this term becomes required. Therefore, our objective function includes two parts: a conventional approximation error part and a smoothing part. They are organized with a weight . The explicit representations of unknown points with conditions of two kinds of endpoint constraints are presented respectively. It is obvious from the examples that the shape of degree-reduced curve depends on three elements, namely endpoint condition, smoothing term and approximation error. Under the premise of guaranteeing endpoint condition, as the names imply, smoothing term determines the smoothness and flatness of curve while the approximation error is the main factor of proximity between degree-reduced curve and the given one. In addition, the smoothing effects are different under different endpoint constraint conditions.

Figure 3. Degree reduced curves with constraint (10).

Figure 4. Degree reduced curves with constraint (13).

Figure 5. Degree reduced curves and control points with constraint (10).

Figure 6. Degree reduced curves and control points with constraint (13).

Acknowledgements

This work is supported by the National Natural Science Foundation of China (No. 11271376).

Cite this paper

Xuli Han,Jing Yang, (2016) Multi-Degree Reduction of Bézier Curves with Distance and Energy Optimization. *Journal of Applied Mathematics and Physics*,**04**,8-15. doi: 10.4236/jamp.2016.41002

References

- 1. Liu, L., Zhang, L., Lin, B. and Wang, G. (2009) Fast Approach for Computing Roots of Polynomials Using Cubic Clipping. Computer Aided Geometric Design, 26, 547-559. http://dx.doi.org/10.1016/j.cagd.2009.02.003
- 2. Bogacki, P., Weinstein, S.E. and Xu, Y. (1995) Degree Reduction of Bézier Curves by Uniform Approximation with Endpoint Interpolation. Computer-Aided Design, 27, 651-661. http://dx.doi.org/10.1016/0010-4485(94)00011-2
- 3. Eck, M. (1993) Degree Reduction of Bézier Curves. Computer Aided Geometric Design, 10, 237-251. http://dx.doi.org/10.1016/0167-8396(93)90039-6
- 4. Kim, H.O. and Moon, S.Y. (1997) Degree Reduction of Bézier Curves by L1-Approximation with Endpoints Interpolation. Computers and Mathematics with Application, 33, 67-77. http://dx.doi.org/10.1016/S0898-1221(97)00020-5
- 5. Rababah, A. and Mann, S. (2013) Linear Methods for G1, G2 and G3-Multi-Degree Reduction of Bézier Curves. Computer-Aided Design, 45, 405-414. http://dx.doi.org/10.1016/j.cad.2012.10.023
- 6. Wo?ny, P. and Lewanowicz, S. (2009) Multi-Degree Reduction of Bézier Curves with Constraints, Using DualBernstein Basis Polynomials. Computer Aided Geometric Design, 26, 566-579. http://dx.doi.org/10.1016/j.cagd.2009.01.006
- 7. Zhou, L., Wei, Y. and Yao, Y. (2014) Optimal Multi-Degree Re-duction of Bézier Curves with Geometric Constraints. Computer-Aided Design, 49, 18-27. http://dx.doi.org/10.1016/j.cad.2013.12.004
- 8. Eck, M. (1995) Least Squares Degree Reduction of Bézier Curves. Computer-Aided Design, 27, 845-851. http://dx.doi.org/10.1016/0010-4485(95)00008-9
- 9. Burnnett, G., Schreiber, T. and Braun, J. (1996) The Geometry of Optimal Degree Reduction of Bézier Curves. Computer Aided Geometric Design, 13, 773-788. http://dx.doi.org/10.1016/0167-8396(96)00009-X
- 10. Kim, H.O., Kim, J.H. and Moon, S.Y. (1996) Degree Reduction of Bézier Curves and Filter Banks. Computers and Mathematics with Applications, 31, 23-30. http://dx.doi.org/10.1016/0898-1221(96)00049-1
- 11. Sunwoo, H. (2005) Matrix Representation for Multi-Degree Reduction of Bézier Curves. Computer Aided Geometric Design, 22, 261-273. http://dx.doi.org/10.1016/j.cagd.2004.12.002
- 12. Lu, L. and Wang, G. (2006) Optimal Multi-Degree Reduction of Bézier Curves with G2-Continuity. Computer Aided Geometric Design, 23, 673-683. http://dx.doi.org/10.1016/j.cagd.2006.09.002
- 13. Lu, L. (2015) Some Improvements on Optimal Multi-Degree Reduction of Bézier Curves with Geometric Constraints. Computer-Aided Design, 59, 39-42. http://dx.doi.org/10.1016/j.cad.2014.08.017
- 14. Gospodarczyk, P. (2015) Degree Reduction of Bézier Curves with Restricted Control Points Area. Computer-Aided Design, 62, 143-151. http://dx.doi.org/10.1016/j.cad.2014.11.009