Professional Documents
Culture Documents
(NURBS)
DEFINITION & BASIC KNOWLEDGE
PART 2 OF 2
By Francisco Cisneros
From National Autonomous University of Mexico
June 2017
Before we start
Presentation scope
Formulas and concepts of a parametric equation and the difference of an implicit equation
Study of the formulas of the polynomials that make up the Bzier Curves
Continuity of a Rational Curve. Preliminary study of the first derivative and curvature
Parametric,
Summary Implicit and
Explicit Equations
Parametric
equation
References
Lines
Parametric
equations of
Curve
Degree Elevation
of a Bzier Curve
The de Casteljau (Funny website)
Algorithm
Derivatives
First Derivative
Rational Bzier
Continuity
Curves
Curvature
Parametric, Implicit and Explicit Equations
There are basically three types of equations that can be used to express in mathematical form a planar
curve: implicit, explicit, and parametric. The parametric equation of a plane curve takes the form:
, = 0 Implicit equation
= Explicit equation
=
Parametric
equation of a
rational curve
=
Parametric, Implicit and Explicit Equations
Examples for a Description
Name General equation
circumference
An implicit function is
a function that is defined
Implicit equation , = 0 + =0 implicitly by an implicit equation,
by associating one of the
variables (the value) with the
others (the arguments).
= ; = cos These instead of defining
Parametric ( = ()) and ( = ()),
equation of a both are defined by a third
rational curve = sin variable, i.e. a parameter
=
Table 1.- Types of equation
Parametric equation
In mathematics, parametric equations define a group of quantities as functions of one or
more independent variables called parameters. Parametric equations are commonly used to express
the coordinates of the points that make up a geometric object such as a curve or surface.
These instead of defining ( = ()) and ( = ()), both are defined by a third variable, that is, a
parameter .
It has the advantage of being able to quickly compute the (, ) coordinates of points on the curve
for plotting purposes. Also, it is simple to dene a curve segment by restricting the parameter to a
nite range, for example 0 1.
Bzier Curves
NURBS is a mathematical model commonly used to represent curves and surfaces. When you are
already plotted, this method offers great flexibility and. (Wait!).
Fig() shows three different Bezier curves, with their corresponding control polygons.
Each control polygon is comprised of four control points that are connect with line segments. (These
control polygons are not closed, and might more properly be called polylines.)
The beauty of the Bezier representation is that a Bezier curve mimics the shape of its control polygon.
Figure 2.3.b shows the Bezier curve that results when the point masses in Figure 2.3.a are taken as control points. This
curve is a cubic Bezier curve, cubic because the mass equations are degree three polynomials in .
The equation of a Bzier Curves
+ + + Equation for the
= center of mass
+ + +
Instead of considering as constant and fixed values, said masses will vary according to a parameter , as we shall
see below
= 1 =3 1 = 3 1 =
Now, for each value of t, the masses assume different weights and their center of mass changes continuously. As
varies between 0 and 1, a curve is swept out by the moving center of mass.
The equation of a Bzier Curves
= 1 =3 1 = 3 1 =
1 + 3 1 + 3 1 + = 1 + =1 1
When = 1, = 1
When = 0, = 1 and = = = 0,
and = = = 0. and the curve passes
This explains why the through point .
curve passes through
.
The mass functions are plotted in the graph in the Fig (). The variable masses () are usually called
Basis functions and, as noted before, the locations are known as control points.
The equation of a Bzier Curves
Bzier curves of any degree can be defined. Fig () shows simple curves of degree one through four. A degree
Bzier curve has + 1 control points whose blending functions (basis) are denoted (),
= 1 , = 0,1, ,
Basis function Formula
The equation of a Bzier Curves
= 1 , = 0,1, , Basis function
!
, = = = = Binomial coefficient
! ! Combination Formula: Where order does not matter.
This is different from the permutations
Binomial expansion
+ =
Bzier curve
= 1
The equation of a Bzier Curves
= 1 , = 0,1, , Basis function
For example:
In the degree three case,
=3
= 1, = 0,1,2,3
= + + +
= + + +
1 3 1 3 1
Bzier curve
= 1
Parameter interval
Bzier Curves over Arbitrary Parameter Intervals
= 1
Bzier curve
+ Affine Parametric
= Equation of a Line
()
Fig.- Polar labels for points on This equation holds for any value of . However, points inside the line
a B-spline curve segment bounded by and are bounded by .
Bzier Curves over Arbitrary Parameter Intervals
This equation gives the equation of a Bezier curve which
starts at = 0 and ends at = 1. It is useful, especially when
= 1
fitting together a string of Bezier curves, to allow an arbitrary
parameter interval: [ , ]
Bzier curve
Such that = and = . We will denote the Bzier curve defined over an arbitrary parameter
interval by , (). Its equation is a modification of the Bzier curves equation.
+
[ = =
= , ]
Affine Parametric
Equation of a Line
= , ()
Parametric equations of lines is a point on the line
In this equation, is a point on the line and is the directions of the line as in the Fig ()
Degree 2
Where:
The de Casteljau Algorithm
The De Casteljau algorithm describes how to subdivide a Bzier curve , into two segments , and
, . To facilitate our description of the algorithm, we label the control points of a cubic Bzier curve ,
with , , and as illustrated in the Figure (). The algorithm involves computing the sequence of points.
Parametric equations of lines
Where:
= 1, , ;
= 1 + ; = +
= 0, ,
De Casteljau Algorithm Parametric equations of lines
= + 1 = 1 + ;
New ratio.
This one varying =
with the value of +1
New set
= + 1 of control
+1 +1 points
Degree Elevation of a Bzier Curve
EXAMPLE:
= 3, the new set control points are:
= + 1
+1 +1
=1 =3 =3
1 1 3 1
= + 1 = + 1
3+1
3+1 3+1 3+1
3
4
=2
2 1
= + 1
3+1
3+1 =
2
4
Degree Elevation of a Bzier Curve
1 3
= +
4 4
2 2
= +
4 4
3 1
= +
4 4
If degree elevation is applied repeatedly, as shown in Figure 2.9.b, the control polygon converges
to the curve itself.
Derivatives
The parametric derivatives of a Bezier curve can be determined geometrically from its control points. For a
polynomial Bezier curve , () of degree with control points , the first parametric derivative can be
expressed as a polynomial Bezier curve of degree 1 with control points where
= ( )
For example, the Bzier curve in Figure () has a first derivate curve as shown. The first derivate vector () (that
is, the first derivative () evaluated at = ) is tangent to the curve () at the point (). This is illustrated in
Figure () for the point = 0.3 . In this example, = 0 and = 1.
Fig.- Hodograph
Rational Bzier Curves
A rational Bzier curve is one for which each control point is assigned a scalar weight. The equation of a
rational Bzier curve is:
()
Fig.- Rational Bzier curve as the projections of a 3-D curve
Rational Bzier Curves
( , , 1) What we see here can be viewed as the geometric
interpretation of homogeneous coordinates discussed in
Section 7.1.1. The 3D Bzier control points , , 1 =
( , , 1)
( , , ) can be thought of as homogeneous
coordinates (, , ) that correspond to 2D Cartesian
( , , 1)
coordinates , . If the 2-D rational Bzier curve has
control points ( , ) with corresponding weights , then
( , , 1) the homogeneous (, , ) coordinates of the 3-D control
points are , , 1 = ( , , ). Denote points on
the 3-D curve using upper case variables ( , , ())
and on the 2-D curve using lower case variables
( , ()). Then, any point on the 2-D rational Bzier
curve can be computed by computing the
corresponding point on the 3-D curve, ( , , ()),
and projecting it to the plane = 1 by setting:
() ()
= =
() ()
Fig.- Rational Bzier curve as the projections of a 3-D curve
By Similar triangles, we have:
( , , 1) 1
=
Solving
for
However, it is not
( , , 1) complete, since it is
necessary to add the
( , , 1) = control points and expand
it to the degree of the
corresponding curve for
Recall the basis function: each point
( , , 1)
= 1 , = 0,1, ,
For each point
= 1
Basis
function
01
Known data: Expanding the equation with the basis functions for each
point as a function of the parameter , we have:
()
= = =
The basis function is not a ()
problem to calculate it
because it depends on
() the degree of the curve
The denominator of the radius is () and it does not
and the control points , need control points because we previously established
they are data that we will that in the plane it was constant, that is, = 1.
establish previously.
First Derivate at the Endpoint of a Rational Bzier Curve
() 1 + | 1 + 1 +
= = = ;=
() 1 + 1 + 1 +
() 1 + | 1 + 1 +
= = =
() 1 + 1 + 1 +
() =
the equation for the first derivative vector at = 0 must be found by evaluating the following
equations:
0 0 0 (0) 0 0 0 (0)
0 = 0 =
(0) (0)
And for the final end of the rational curve, that is, when = 1 we have:
1 1 1 (1) 1 1 1 (1)
1 = 1 =
(1) (1)
(See the process of differentiation of the equations of the rational curve in and in the PDF document)
First Derivate at the Endpoint of a Rational Bzier Curve
(See the process of differentiation of the equations of the rational curve in and in the PDF document)
Finally we have:
0 = ( ) 1 = ( )
1
=
= ( )
First derivative
1
=
Curvature
Continuity
As we had studied, two curve segments [ , ] and [ , ] are said to be continuous (or, to have order
parametric continuity) if:
= , = t ,, = ( )
Thus, means simply that the two adjacent curves share a common endpoint. means that the
two curves not only share the same endpoint, but also that they have the same tangent vector at
their shared endpoint, in magnitude as well as in direction. means that two curves are and
in addition that they have the same second order parametric derivatives at their shared endpoint,
both in magnitude and in direction. In the figure (), the two curves , () and , () are at least
because .
3 3
= ( )
They are if they are and
6 6
2 + = ( 2 )
https://es.wikipedia.org/wiki/Radio_de_curvatura
https://en.wikipedia.org/wiki/Radius_of_curvature
https://en.wikipedia.org/wiki/Osculating_circle
https://es.wikipedia.org/wiki/Circunferencia_osculatriz
https://es.wikipedia.org/wiki/Geometr%C3%ADa_diferencial_de_curvas