0% found this document useful (0 votes)
42 views4 pages

Bezier Curve Online Class

Bezier curves are parametric curves used in computer graphics and design. They use Bernstein polynomials as basis functions to blend between control points. The degree of the curve determines the number of control points and order of the blending function. Cubic Bezier curves use 4 control points and a cubic blending function. An example constructs a quadratic Bezier curve from 3 control points and calculates the x and y coordinates along the curve at increasing values of the parameter u.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views4 pages

Bezier Curve Online Class

Bezier curves are parametric curves used in computer graphics and design. They use Bernstein polynomials as basis functions to blend between control points. The degree of the curve determines the number of control points and order of the blending function. Cubic Bezier curves use 4 control points and a cubic blending function. An example constructs a quadratic Bezier curve from 3 control points and calculates the x and y coordinates along the curve at increasing values of the parameter u.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BEZIER CURVE

Bezier curve use a construction curve, in


which the interpolating polynomials depends
on certain control points. It is a parametric
curve that use Bernstein polynomial as a
blending function or basis function.
Degree =n then Order = n+1
Q(u)=∑PiBi,n (u) (i=0 to n) (0<=u<=1)
Where Pi is the control points.
Bi,n(u)= nci ui (1-u) n-i
n
ci = n!/(i!*(n-i)!)

Blending function for Degree(n)=3 Bezier


Curve
(4 control points)
Q(u)=P0B0,3(u)+ P1B1,3(u)+ P2B2,3(u)+ P3B3,3(u)
B0,3(u)=3c0u0(1-u)3=(1-u)3
B1,3(u)=3c1u1(1-u)2=3u(1-u)2
B2,3(u)=3c2u2(1-u)1=3u2(1-u)
B3,3(u)=3c3u3(1-u)0=u3
Q(u)= P0(1-u)3 + P13u(1-u)2+ P23u2(1-u)+P3u3
This is the blending function for cubic bezier
curve(Degree=3)
Blending function for quadretic bezier
curve(Degree=2)
Q(u)= P0(1-u)2 + P12u(1-u)+ P2u2
Blending function for linear Bezier
curve(Degree=1)
Q(u)= P0(1-u) + P1u

Numerical:
Construct Bezier Curve for control points
(4,2),(8,8) and (16,4)
Ans:
P0=(4,2) P1=(8,8) P2=(16,4)
Control Points: 3, so Degree: 2
Blending function for quadretic bezier
curve(Degree=2)
Q(u)= P0(1-u)2 + P12u(1-u)+ P2u2
P0(x0,y0)=(4,2)
P1(x1,y1)=(8,8)
P2(x2,y2)=(16,4)
x(u)= x0(1-u)2 + x12u(1-u)+ x2u2
=4u2+8u+4
y(u)= y0(1-u)2 + y12u(1-u)+ y2u2
=-10u2+12u+2
u x(u) y(u)
0 4 2
0.2 5.76 4
0.4 7.84 5.20
0.6 10.24 5.6
0.8 12.96 5.2
1.0 16 4

Draw the bezier curve defined by the control


points (2,1), (3,2), (5,0) and (6,2)
Draw the bezier curve defined by the control
points (0,0), (1,2), (3,2), (2,0)

You might also like