![MathJax Logo](/templates/jsp/_style2/_tandf/pb2/images/math-jax.gif)
Abstract
A Bezier curve is significant with its control points. When control points are given, the Bezier curve can be written using De Casteljau's algorithm. An important property of Bezier curve is that every coordinate function is a polynomial. Suppose that a curve is a curve which coordinate functions are polynomial. Can we find points that make the curve
as Bezier curve? This article presents a method for finding points which present
as a Bezier curve.
KEYWORDS:
1. Introduction
The curve theory is used in differential geometry, kinematics, robotics and engineering. Bezier curves are important subset of the curves. Bezier curves have been used in computer-aided geometric design (CAGD) and in many areas [Citation1–5]. For every Bezier curve, the control points are uniquely defined [Citation6]. In CAGD, the most popular areas of research are used shape control parameters to construct Bezier curves [Citation7]. It is possible to establish the linear relationship of the control points of a Bezier curve and surface [Citation8, Citation9]. It is well known from the relevant literature, a Bezier curve is established by the control points. When the control points are given, using the Bernstein polynomial and De Castaljeu algorithm we can write the Bezier curve.
The coordinates of a Bezier curve are polynomial functions including the coefficients of Bernstein polynomial and the component of the control points. However, when a Bezier curve is given, we can not say the control points what are? In the relevant literature, there are some articles about finding the control points of third order with minimum error [Citation10].
Our aim is to find the control points exactly, not approximately. Suppose that is a curve,
,
,
are coordinate functions.
,
,
are polynomial with degree
and
, respectively. In this case, we can find
points which are control points of the curve
as a Bezier curve. The original contribution of our study is to find the control points when a curve is given. We need only the coefficients of polynomial coordinate functions. These coefficients give us the coordinates of control points using the inverse of creator matrix. Creator matrix has an inverse. We show this case in Section 3. The advantages of the proposed method are different from the existing methods. The control points are given for finding the Bezier curve in the existing methods but the control points are found in our method. If we have creator matrix, we can find the control points every time.
Firstly, we give basic knowledge about a Bezier curve. And then, we introduce a method to find the control points of a given curve in Section 3, which is the original part of this article.
2. Preliminaries
Binomial expansion with n-degree for a and b is given by
For a=t and b=1−t, we can write this polynomial, which is called Bernstein polynomial, as
or
where
. This polynomial was introduced by Bernstein [Citation11]. A Bernstein polynomial can be written in matrix form [Citation12].
Bernstein polynomials have the linearly independent property, so Bernstein polynomials set forms a basis for all polynomials. Using the de Casteljau algorithm and Bernstein polynomial, a Bezier curve can be written as
(1)
(1) where
are elements of
,
, and called Bezier points [Citation13].
If
then we have
and, in terms of coordinate functions,
(2)
(2)
is continuous on
and differentiable on
.
Using the matrix form, we can write a Bezier curve with control points as
where
and
are the control points of the Bezier curve
in
.
3. Calculating the points for a curve ![](//:0)
which makes as Bezier curve
3.1. Creator matrix
In this section, we give a matrix formulation to calculate the unknown control points of a given curve.
In generally, a Bezier curve is not written in the power basis . However, for calculating the control points of a Bezier curve,
must be written in the power basis
. In Equation (1), the multipliers of each component
belongs to N,
and P, where
Hence, we can write
The serial expansion of every
placed in
is as
In this case,
can be written in the power basis {
}. Now we have to calculate the coefficients of
. The coefficients of
can be obtained from the following statements, respectively;
Using the coefficients of , the curve
(3)
(3) can be written as
(4)
(4) Equation (4) is the main equation for this article. In Equation (4), the Bezier curve
is written in matrix form as follows
(5)
(5) where,
(6)
(6)
Now we give a new definition.
Definition 3.1
The matrix is called the creator matrix for Bezier curves.
3.2. Finding the control points
The creator matrix and the given Bezier curve in the form are very important. Since in this case, the matrix A is invertible and this allows us to find the control points of unknown control points of a Bezier curve. Also, using Equation (5), it is very easy to calculate the derivative and integration of a Bezier curve. Now we give a proposition, theorem and examples using the creator matrix.
Proposition 3.2
The creator matrix A is an invertible matrix.
Proof.
A is a lower-triangle square matrix and . For
,
That is,
.
Theorem 3.3
Every curve which coordinate functions are polynomial can be written as a Bezier curve.
Proof.
When a curve is given with the coordinate functions to be polynomial, there are the control points uniquely and exactly which they make the curve as Bezier curve. Suppose that any polynomial curve is given by
, n=2 or n=3,
(7)
(7) Then,
can be written in matrix form as
(8)
(8) From Equations (5) and (8), we have
and
(9)
(9) So, we find the solutions of Equation (9) as
(10)
(10)
This solution is unique. This method gives us the control points exactly, not approximately.
Example
Suppose that a Bezier curve is given as
where,
(Figure ).
Now we calculate the control points of the curve . For this we write the programme in Matlab.
Coefficients matrix of this curve is
From
, we have
The control points are
The control points of
is drawn as in Figure . At the end we can plot Bezier curve, the control points and the control polygon of curve
(Figure ).
Example
Let curve be given as follows.
The figure of this curve is as in Figure .
The coefficients matrix of is
The creator matrix is
The inverse of the creator matrix is
So we have the control points from
The control points are
The control points of are shown as in Figure .The control polygon of the Bezier curve is drawn as in Figure . Finally, we can draw the Bezier curve as in Figure .
Example
Let the curve be given in
as
The coefficients matrix of
is
The creator matrix A and the inverse of the creator matrix B are as follows.
and
Thus we have the control points of
as a Bezier curve is found as
3.3. Derivative and integration on the Bezier curves
It is notable that if Bezier curve can be written as in Equation (5), this new argument can raise many advantages. For example, in case a representation as in Equation (5) it can be easily calculated the derivative, integration,…,etc of the Bezier curve. This is a clear advantage of writting a Bezier curve in matrix form. Here, we success this fact for Bezier curves. In addition, in the relevant literature the derivative and integration of various Bezier curves are calculated by classical ways. This case brings many difficulties. However, in this paper we calculate the derivative of the Bezier curves by means of the matrix form. This case can bring many advantages for the researchers. That is, in that case, we can calculate the derivative and integration of the Bezier curves easily. These are the contributions of this paper to the literature and its novelty and originality. This method, which defines the Bezier curve as the polynomial in the power basis , is very useful in practice and computer science. Suppose that the Bezier curve with
control points is given as in Equation (5),
In this case, the derivative of
is
and We can calculate the successive derivative
Furthermore, we can calculate easily the integration of a Bezier curve using the form in Equation (5). So, the integration of is
4. Conclusion
In computer-aided geometric design (CAGD), one of the main problem is to calculate the control points of a Bezier curve with unknown control points. In this article, a matrix is defined and called a creator matrix. The product of creator matrix of the control points gives us the Bezier curve. Conversely, since the creator matrix is invertible, inverse of the creator matrix can be used to find the control points of the Bezier curve.
Disclosure statement
No potential conflict of interest was reported by the authors.
References
- Bezier P. The mathematical basis of the UNISURF CAD system. London: Butterworths; 1986.
- Bezier P. Mathematical and practical possibilities of UNISURF. Comput Aided Geom Design. 1974;127–152. doi: 10.1016/B978-0-12-079050-0.50012-6
- Boehm W, Muller A. On de Castejau's algorithm. Comput Aided Geom Design. 1999;16:587–605. doi: 10.1016/S0167-8396(99)00023-0
- Farin G. Curves and surfaces for computer aided geometric design. Boston: Academic Press; 1993.
- Farin G. Curves and surfaces for CAGD. Boston: Academic Press; 2002.
- Berry TG, Patterson RR. The uniqueness of Bezier control points. Comput Aided Geom Design. 1997;14:877–879. doi: 10.1016/S0167-8396(97)00016-2
- Qin X, Hu G, Zhang N, et al. A novel extension to the polynomial basis functions describing Bezier curves and surfaces of degree n with multiple shape parameters. Appl Math Comput. 2013;223:1–16.
- Deng J, Kao T. Linear relationship of the control points of Bezier curve for degree reduction: a tridiagonal matrix approach. J Chin Inst Ind Eng. 2008;31(5):873–878. doi: 10.1080/02533839.2008.9671441
- Hu G, Wu J, Qin X. A novel extension of the Bézier model and its applications to surface modeling. Adv Eng Softw. 2018;125:27–54. doi: 10.1016/j.advengsoft.2018.09.002
- Bhuiyan MA, Hama H. An accurate method for finding the control points of Bezier curves. Mem Fac Eng Osaka City Univ. 1997;38:175–181.
- Bernstein S. Demonstration du theoreme de Weierstrass fondee sur le calcul des probabilities. Harkov Soobs Matem ob-va. 1912;13:1–2.
- Bela S, Szilvasi-Nagy M. Merging B-spline curves or surfaces using matrix representation. J Comput Graph Tech. 2017;6(3):1–24.
- Bezier BP, Sioussiou S. Semi-automatic system for defining free-form curves and surfaces. Comput-Aided Des. 1983;5(2):65–72. doi: 10.1016/0010-4485(83)90170-7