3. Spline – Old Days
Draftsman use ‘ducks’ and strips
of wood (splines) to draw curves
Wood splines have second-order
continuity
A Duck (weight)
Ducks trace out curve
4. Spline – Some definition
Control Points
A set of points that influence the
curve’s shape
Knots
Control points that lie on the
curve
Interpolating Splines
Curves that pass through the
control points (knots)
Approximating Splines
Control points only influence
shape
5. Spline Specification
Specified by a sum of smaller curve segments represented
by the function ‘Φ’ known as basis or blending function.
For curve modeling, polynomials are often the blending
function of choice.
Mathematically,
Where, i= 0, 1, 2, 3, … , n
and, p0, p1, … , pn are weights.
p(u) = piFi (u)
i=0
n
å
6. Bézier Curves
Similar to Hermite, but more intuitive definition of
endpoint derivatives.
Instead of using control points and slopes (as in Hermite),
Bézier curve can be generated only when control points
are given.
Given (n+1)-control points, the basis function of Bézier
curve is a n-degree polynomial.
7. Bézier Curves
Given (n+1)-control points, the basis function of Bézier
curve is a n-degree polynomial.
The parametric equation of the Bézier curve is:
Expanding it:
P(u) = p0BEZ0,n(u) + p1BEZ1,n(u) + … + pnBEZn,n(u)
p(u) = pk BEZk,n (u)
k=0
n
å , where,0£u£1
Point on the curve
Control point
Basis or Coefficient
8. Bézier Curves
The Bezier blending functions BEZk,n(u) are the Bernstein
polynomials.
BEZk,n (u) = n
Ckuk
(1-u)n-k
Where, n
Ck =
n!
k!(n - k)!
Binomial Coefficient
9. Linear Bézier Curve
Two control points: p0, p1
Represents a straight line between these points
P(u) = p0BEZ0,n(u) + p1BEZ1,n(u) + … + pnBEZn,n(u)
Here n=1, k=0,1
p(u) = p0BEZ0,1(u) + p1BEZ1,1(u)
= p0
1C0 u0 (1-u)1-0 + p1
1C1 u1 (1-u)1-1
= p0 . 1 . 1. (1-u) + p1 . 1 . u . 1
p(u)= p0(1-u) + p1u
Parametric equation of line
13. Cubic Bézier Curve
p(u) = u3 (- p0 + 3p1 - 3p2 + p3)
+ u2 (3p0 – 6p1 + 3p2)
+ u (-3p0 + 3p1)
+ p0
p(u) = u3
u2
u 1
é
ë
ê
ù
û
ú.
-1 3 -3 1
3 -6 3 0
-3 3 0 0
1 0 0 0
é
ë
ê
ê
ê
ê
ù
û
ú
ú
ú
ú
.
p0
p1
p2
p3
é
ë
ê
ê
ê
ê
ê
ù
û
ú
ú
ú
ú
ú
p(u) = u3
u2
u 1
é
ë
ê
ù
û
ú.MBEZ .
p0
p1
p2
p3
é
ë
ê
ê
ê
ê
ê
ù
û
ú
ú
ú
ú
ú
MBEZ
18. Properties of Bézier Curve
1) It always passes through the two end points i.e. first and last
control point.
2) The Bézier curve is a straight line iff the control points are
collinear.
3) The slope (tangent) at the beginning of the curve is along
the line joining the first two control points and the slope at
the end of the curve is along the line joining the last two end
points.
19. Properties of Bézier Curve
4) The degree of the polynomial defining the curve segment is
one less than the number of control points.
5) All basis functions are non-negative and their sum is always
1 i.e.
6) The curve generally follows the shape of the defining
polygon.
7) The Bézier curves always lie within the convex hull.
BEZk,n (u)
k=0
n
å =1