SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Bezier Curve in Computer Graphics
Bezier Curve-
Bezier Curve may be defined as-
 Bezier Curve is parametric curve defined by a set of control points.
 Two points are ends of the curve.
 Other points determine the shape of the curve.
The concept of bezier curves was given by Pierre Bezier.
Bezier Curve Example-
The following curve is an example of a bezier curve-
Here,
 This bezier curve is defined by a set of control points b0, b1, b2 and b3.
 Points b0 and b3 are ends of the curve.
 Points b1 and b2 determine the shape of the curve.
Bezier Curve Properties-
Few important properties of a bezier curve are-
Property-01:
Bezier curve is always contained within a polygon called as convex hull of its control
points.
Property-02:
 Bezier curve generally follows the shape of its defining polygon.
 The first and last points of the curve are coincident with the first and last points of
the defining polygon.
Property-03:
The degree of the polynomial defining the curve segment is one less than the total
number of control points.
Degree = Number of Control Points – 1
Property-04:
The order of the polynomial defining the curve segment is equal to the total number
of control points.
Order = Number of Control Points
Property-05:
 Bezier curve exhibits the variation diminishing property.
 It means the curve do not oscillate about any straight line more often than the
defining polygon.
Bezier Curve Equation-
A bezier curve is parametrically represented by-
Here,
 t is any parameter where 0 <= t <= 1
 P(t) = Any point lying on the bezier curve
 Bi = ith control point of the bezier curve
 n = degree of the curve
 Jn,i(t) = Blending function = C(n,i)ti(1-t)n-i where C(n,i) = n! / i!(n-i)!
Cubic Bezier Curve-
 Cubic bezier curve is a bezier curve with degree 3.
 The total number of control points in a cubic bezier curve is 4.
Example-
The following curve is an example of a cubic bezier curve-
Here,
 This curve is defined by 4 control points b0, b1, b2 and b3.
 The degree of this curve is 3.
 So, it is a cubic bezier curve.
Cubic Bezier Curve Equation-
The parametric equation of a bezier curve is-
Substituting n = 3 for a cubic bezier curve, we get-
Expanding the above equation, we get-
P (t) = B0J3,0(t) + B1J3,1(t) + B2J3,2(t) + B3J3,3(t) ………..(1)
Now,
Bezier Curve in Computer Graphics.docx
Using (2), (3), (4) and (5) in (1), we get-
P(t) = B0(1-t)3 + B13t(1-t)2 + B23t2(1-t) + B3t3
This is the required parametric equation for a cubic bezier curve.
Applications of Bezier Curves-
Bezier curves have their applications in the following fields-
1. Computer Graphics-
 Bezier curves are widely used in computer graphics to model smooth curves.
 The curve is completely contained in the convex hull of its control points.
 So, the points can be graphically displayed & used to manipulate the curve
intuitively.
2. Animation-
 Bezier curves are used to outline movement in animation applications such as
Adobe Flash and synfig.
 Users outline the wanted path in bezier curves.
 The application creates the needed frames for the object to move along the path.
 For 3D animation, bezier curves are often used to define 3D paths as well as 2D
curves.
3. Fonts-
 True type fonts use composite bezier curves composed of quadratic bezier curves.
 Modern imaging systems like postscript, asymptote etc use composite bezier
curves composed of cubic bezier curves for drawing curved shapes.
PRACTICE PROBLEMS BASED ON BEZIER CURVE
IN COMPUTER GRAPHICS-
Problem-01:
Given a bezier curve with 4 control points-
B0[1 0] , B1[3 3] , B2[6 3] , B3[8 1]
Determine any 5 points lying on the curve. Also, draw a rough sketch of the curve.
Solution-
We have-
 The given curve is defined by 4 control points.
 So, the given curve is a cubic bezier curve.
The parametric equation for a cubic bezier curve is-
P(t) = B0(1-t)3 + B13t(1-t)2 + B23t2(1-t) + B3t3
Substituting the control points B0, B1, B2 and B3, we get-
P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3 ……..(1)
Now,
To get 5 points lying on the curve, assume any 5 values of t lying in the range 0 <= t
<= 1.
Let 5 values of t are 0, 0.2, 0.5, 0.7, 1
For t = 0:
Substituting t=0 in (1), we get-
P(0) = [1 0](1-0)3 + [3 3]3(0)(1-t)2 + [6 3]3(0)2(1-0) + [8 1](0)3
P(0) = [1 0] + 0 + 0 + 0
P(0) = [1 0]
For t = 0.2:
Substituting t=0.2 in (1), we get-
P(0.2) = [1 0](1-0.2)3 + [3 3]3(0.2)(1-0.2)2 + [6 3]3(0.2)2(1-0.2) + [8 1](0.2)3
P(0.2) = [1 0](0.8)3 + [3 3]3(0.2)(0.8)2 + [6 3]3(0.2)2(0.8) + [8 1](0.2)3
P(0.2) = [1 0] x 0.512 + [3 3] x 3 x 0.2 x 0.64 + [6 3] x 3 x 0.04 x 0.8 + [8 1] x 0.008
P(0.2) = [1 0] x 0.512 + [3 3] x 0.384 + [6 3] x 0.096 + [8 1] x 0.008
P(0.2) = [0.512 0] + [1.152 1.152] + [0.576 0.288] + [0.064 0.008]
P(0.2) = [2.304 1.448]
For t = 0.5:
Substituting t=0.5 in (1), we get-
P(0.5) = [1 0](1-0.5)3 + [3 3]3(0.5)(1-0.5)2 + [6 3]3(0.5)2(1-0.5) + [8 1](0.5)3
P(0.5) = [1 0](0.5)3 + [3 3]3(0.5)(0.5)2 + [6 3]3(0.5)2(0.5) + [8 1](0.5)3
P(0.5) = [1 0] x 0.125 + [3 3] x 3 x 0.5 x 0.25 + [6 3] x 3 x 0.25 x 0.5 + [8 1] x 0.125
P(0.5) = [1 0] x 0.125 + [3 3] x 0.375 + [6 3] x 0.375 + [8 1] x 0.125
P(0.5) = [0.125 0] + [1.125 1.125] + [2.25 1.125] + [1 0.125]
P(0.5) = [4.5 2.375]
For t = 0.7:
Substituting t=0.7 in (1), we get-
P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3
P(0.7) = [1 0](1-0.7)3 + [3 3]3(0.7)(1-0.7)2 + [6 3]3(0.7)2(1-0.7) + [8 1](0.7)3
P(0.7) = [1 0](0.3)3 + [3 3]3(0.7)(0.3)2 + [6 3]3(0.7)2(0.3) + [8 1](0.7)3
P(0.7) = [1 0] x 0.027 + [3 3] x 3 x 0.7 x 0.09 + [6 3] x 3 x 0.49 x 0.3 + [8 1] x 0.343
P(0.7) = [1 0] x 0.027 + [3 3] x 0.189 + [6 3] x 0.441 + [8 1] x 0.343
P(0.7) = [0.027 0] + [0.567 0.567] + [2.646 1.323] + [2.744 0.343]
P(0.7) = [5.984 2.233]
For t = 1:
Substituting t=1 in (1), we get-
P(1) = [1 0](1-1)3 + [3 3]3(1)(1-1)2 + [6 3]3(1)2(1-1) + [8 1](1)3
P(1) = [1 0] x 0 + [3 3] x 3 x 1 x 0 + [6 3] x 3 x 1 x 0 + [8 1] x 1
P(1) = 0 + 0 + 0 + [8 1]
P(1) = [8 1]
Following is the required rough sketch of the curve-

More Related Content

PPT
Quadric surfaces
PDF
Curves and surfaces
PDF
Computer graphics curves and surfaces (1)
PPTX
Bezier curve & B spline curve
PDF
2D Transformation in Computer Graphics
PPTX
3d transformation computer graphics
PPTX
Spline representations
PPTX
Bezier Curve
Quadric surfaces
Curves and surfaces
Computer graphics curves and surfaces (1)
Bezier curve & B spline curve
2D Transformation in Computer Graphics
3d transformation computer graphics
Spline representations
Bezier Curve

What's hot (20)

PPTX
Cohen sutherland line clipping
PPTX
Bezeir curve na B spline Curve
PPTX
Projection In Computer Graphics
PPTX
Back face detection
PPTX
Projections.pptx
PPTX
Hidden surface removal
PPTX
2D viewing & clipping
PPT
Composite transformations
PPTX
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
PPTX
Graphics_3D viewing
PPTX
Reflection transformation
PPTX
Clipping in Computer Graphics
PPT
Line drawing algo.
PDF
3D Transformation
PPTX
clippiNG COMPUTER GRAPHICS A NEW ERA.pptx
PPT
Character generation
PDF
Unit 3
PPT
3 d viewing
PPT
Visible surface detection in computer graphic
PPTX
Raster Scan display
Cohen sutherland line clipping
Bezeir curve na B spline Curve
Projection In Computer Graphics
Back face detection
Projections.pptx
Hidden surface removal
2D viewing & clipping
Composite transformations
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
Graphics_3D viewing
Reflection transformation
Clipping in Computer Graphics
Line drawing algo.
3D Transformation
clippiNG COMPUTER GRAPHICS A NEW ERA.pptx
Character generation
Unit 3
3 d viewing
Visible surface detection in computer graphic
Raster Scan display
Ad

Similar to Bezier Curve in Computer Graphics.docx (20)

PPTX
UNIT 2-Geometric Modeling.pptx
PPTX
Computer Graphics Introduction To Curves
PPTX
Bezier curve
PPT
three dimensionall Object Representation.ppt
PPTX
Presentation on bezier curve
PDF
Elhabian_curves10.pdf
PPT
Curve modeling bezier curves
PPTX
Geometric Curves
PPTX
Bezier Curve and Spline Curve
PPTX
5_6221983039971394498.pptx
PDF
Module- II (CO-II) Geometric Modelling- straight line, representation of curv...
PPTX
#KPC #CST #Curves
PPTX
Introduction to the curves
PPTX
Curves wire frame modelling
PDF
curve one
PPTX
Bezier-curve a parametric curve of control points.pptx
PPTX
Bezier Curve
PPTX
8 arc length and area of surfaces x
PPTX
Unit 2 curves &amp; surfaces
PPTX
Synthetics surfaces unit ii
UNIT 2-Geometric Modeling.pptx
Computer Graphics Introduction To Curves
Bezier curve
three dimensionall Object Representation.ppt
Presentation on bezier curve
Elhabian_curves10.pdf
Curve modeling bezier curves
Geometric Curves
Bezier Curve and Spline Curve
5_6221983039971394498.pptx
Module- II (CO-II) Geometric Modelling- straight line, representation of curv...
#KPC #CST #Curves
Introduction to the curves
Curves wire frame modelling
curve one
Bezier-curve a parametric curve of control points.pptx
Bezier Curve
8 arc length and area of surfaces x
Unit 2 curves &amp; surfaces
Synthetics surfaces unit ii
Ad

More from bcanawakadalcollege (20)

PPTX
PRACTICAL -UNIX, shell programs, shell commands
PPTX
Operating System, types, goals, functions
PPT
Dsta communications and computer networks
PPTX
PRACTICAL -UNIX, main unix commands in practice
PPTX
Intro to Javascript.pptx
PPTX
computer and software are changing.pptx
PPTX
tIME LINE.pptx
PPT
Basic HTML Tags.PPT
PPT
Cryptography.ppt
PPTX
Confusion and Diffusion.pptx
PPT
cypher tex.ppt
PPT
17javascript.ppt
PPT
Logic gates and boolean algebra.ppt
PPTX
Cyber_Crime_Security.pptx
PPT
cybercrime_presentation - Copy.ppt
PPTX
Hidden Surface Removal methods.pptx
PPTX
Hidden Surface Removal.pptx
PPT
Lecture6.orig.ppt
PPTX
reliable_unreliable.pptx
PDF
2D-transformation-1.pdf
PRACTICAL -UNIX, shell programs, shell commands
Operating System, types, goals, functions
Dsta communications and computer networks
PRACTICAL -UNIX, main unix commands in practice
Intro to Javascript.pptx
computer and software are changing.pptx
tIME LINE.pptx
Basic HTML Tags.PPT
Cryptography.ppt
Confusion and Diffusion.pptx
cypher tex.ppt
17javascript.ppt
Logic gates and boolean algebra.ppt
Cyber_Crime_Security.pptx
cybercrime_presentation - Copy.ppt
Hidden Surface Removal methods.pptx
Hidden Surface Removal.pptx
Lecture6.orig.ppt
reliable_unreliable.pptx
2D-transformation-1.pdf

Recently uploaded (20)

PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
Well-logging-methods_new................
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Welding lecture in detail for understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
PPT on Performance Review to get promotions
Lesson 3_Tessellation.pptx finite Mathematics
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
573137875-Attendance-Management-System-original
CH1 Production IntroductoryConcepts.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Lecture Notes Electrical Wiring System Components
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Digital Logic Computer Design lecture notes
Model Code of Practice - Construction Work - 21102022 .pdf
Construction Project Organization Group 2.pptx
additive manufacturing of ss316l using mig welding
Well-logging-methods_new................
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Structs to JSON How Go Powers REST APIs.pdf
Welding lecture in detail for understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPT on Performance Review to get promotions

Bezier Curve in Computer Graphics.docx

  • 1. Bezier Curve in Computer Graphics Bezier Curve- Bezier Curve may be defined as-  Bezier Curve is parametric curve defined by a set of control points.  Two points are ends of the curve.  Other points determine the shape of the curve. The concept of bezier curves was given by Pierre Bezier. Bezier Curve Example- The following curve is an example of a bezier curve- Here,  This bezier curve is defined by a set of control points b0, b1, b2 and b3.  Points b0 and b3 are ends of the curve.  Points b1 and b2 determine the shape of the curve.
  • 2. Bezier Curve Properties- Few important properties of a bezier curve are- Property-01: Bezier curve is always contained within a polygon called as convex hull of its control points. Property-02:  Bezier curve generally follows the shape of its defining polygon.  The first and last points of the curve are coincident with the first and last points of the defining polygon. Property-03:
  • 3. The degree of the polynomial defining the curve segment is one less than the total number of control points. Degree = Number of Control Points – 1 Property-04: The order of the polynomial defining the curve segment is equal to the total number of control points. Order = Number of Control Points Property-05:  Bezier curve exhibits the variation diminishing property.  It means the curve do not oscillate about any straight line more often than the defining polygon. Bezier Curve Equation- A bezier curve is parametrically represented by- Here,  t is any parameter where 0 <= t <= 1  P(t) = Any point lying on the bezier curve  Bi = ith control point of the bezier curve
  • 4.  n = degree of the curve  Jn,i(t) = Blending function = C(n,i)ti(1-t)n-i where C(n,i) = n! / i!(n-i)! Cubic Bezier Curve-  Cubic bezier curve is a bezier curve with degree 3.  The total number of control points in a cubic bezier curve is 4. Example- The following curve is an example of a cubic bezier curve- Here,  This curve is defined by 4 control points b0, b1, b2 and b3.  The degree of this curve is 3.  So, it is a cubic bezier curve. Cubic Bezier Curve Equation-
  • 5. The parametric equation of a bezier curve is- Substituting n = 3 for a cubic bezier curve, we get- Expanding the above equation, we get- P (t) = B0J3,0(t) + B1J3,1(t) + B2J3,2(t) + B3J3,3(t) ………..(1) Now,
  • 7. Using (2), (3), (4) and (5) in (1), we get- P(t) = B0(1-t)3 + B13t(1-t)2 + B23t2(1-t) + B3t3 This is the required parametric equation for a cubic bezier curve. Applications of Bezier Curves- Bezier curves have their applications in the following fields- 1. Computer Graphics-  Bezier curves are widely used in computer graphics to model smooth curves.  The curve is completely contained in the convex hull of its control points.  So, the points can be graphically displayed & used to manipulate the curve intuitively. 2. Animation-  Bezier curves are used to outline movement in animation applications such as Adobe Flash and synfig.  Users outline the wanted path in bezier curves.  The application creates the needed frames for the object to move along the path.  For 3D animation, bezier curves are often used to define 3D paths as well as 2D curves. 3. Fonts-  True type fonts use composite bezier curves composed of quadratic bezier curves.  Modern imaging systems like postscript, asymptote etc use composite bezier curves composed of cubic bezier curves for drawing curved shapes. PRACTICE PROBLEMS BASED ON BEZIER CURVE IN COMPUTER GRAPHICS-
  • 8. Problem-01: Given a bezier curve with 4 control points- B0[1 0] , B1[3 3] , B2[6 3] , B3[8 1] Determine any 5 points lying on the curve. Also, draw a rough sketch of the curve. Solution- We have-  The given curve is defined by 4 control points.  So, the given curve is a cubic bezier curve. The parametric equation for a cubic bezier curve is- P(t) = B0(1-t)3 + B13t(1-t)2 + B23t2(1-t) + B3t3 Substituting the control points B0, B1, B2 and B3, we get- P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3 ……..(1) Now, To get 5 points lying on the curve, assume any 5 values of t lying in the range 0 <= t <= 1. Let 5 values of t are 0, 0.2, 0.5, 0.7, 1 For t = 0: Substituting t=0 in (1), we get- P(0) = [1 0](1-0)3 + [3 3]3(0)(1-t)2 + [6 3]3(0)2(1-0) + [8 1](0)3 P(0) = [1 0] + 0 + 0 + 0 P(0) = [1 0]
  • 9. For t = 0.2: Substituting t=0.2 in (1), we get- P(0.2) = [1 0](1-0.2)3 + [3 3]3(0.2)(1-0.2)2 + [6 3]3(0.2)2(1-0.2) + [8 1](0.2)3 P(0.2) = [1 0](0.8)3 + [3 3]3(0.2)(0.8)2 + [6 3]3(0.2)2(0.8) + [8 1](0.2)3 P(0.2) = [1 0] x 0.512 + [3 3] x 3 x 0.2 x 0.64 + [6 3] x 3 x 0.04 x 0.8 + [8 1] x 0.008 P(0.2) = [1 0] x 0.512 + [3 3] x 0.384 + [6 3] x 0.096 + [8 1] x 0.008 P(0.2) = [0.512 0] + [1.152 1.152] + [0.576 0.288] + [0.064 0.008] P(0.2) = [2.304 1.448] For t = 0.5: Substituting t=0.5 in (1), we get- P(0.5) = [1 0](1-0.5)3 + [3 3]3(0.5)(1-0.5)2 + [6 3]3(0.5)2(1-0.5) + [8 1](0.5)3 P(0.5) = [1 0](0.5)3 + [3 3]3(0.5)(0.5)2 + [6 3]3(0.5)2(0.5) + [8 1](0.5)3 P(0.5) = [1 0] x 0.125 + [3 3] x 3 x 0.5 x 0.25 + [6 3] x 3 x 0.25 x 0.5 + [8 1] x 0.125 P(0.5) = [1 0] x 0.125 + [3 3] x 0.375 + [6 3] x 0.375 + [8 1] x 0.125 P(0.5) = [0.125 0] + [1.125 1.125] + [2.25 1.125] + [1 0.125] P(0.5) = [4.5 2.375] For t = 0.7: Substituting t=0.7 in (1), we get- P(t) = [1 0](1-t)3 + [3 3]3t(1-t)2 + [6 3]3t2(1-t) + [8 1]t3 P(0.7) = [1 0](1-0.7)3 + [3 3]3(0.7)(1-0.7)2 + [6 3]3(0.7)2(1-0.7) + [8 1](0.7)3 P(0.7) = [1 0](0.3)3 + [3 3]3(0.7)(0.3)2 + [6 3]3(0.7)2(0.3) + [8 1](0.7)3 P(0.7) = [1 0] x 0.027 + [3 3] x 3 x 0.7 x 0.09 + [6 3] x 3 x 0.49 x 0.3 + [8 1] x 0.343 P(0.7) = [1 0] x 0.027 + [3 3] x 0.189 + [6 3] x 0.441 + [8 1] x 0.343 P(0.7) = [0.027 0] + [0.567 0.567] + [2.646 1.323] + [2.744 0.343] P(0.7) = [5.984 2.233]
  • 10. For t = 1: Substituting t=1 in (1), we get- P(1) = [1 0](1-1)3 + [3 3]3(1)(1-1)2 + [6 3]3(1)2(1-1) + [8 1](1)3 P(1) = [1 0] x 0 + [3 3] x 3 x 1 x 0 + [6 3] x 3 x 1 x 0 + [8 1] x 1 P(1) = 0 + 0 + 0 + [8 1] P(1) = [8 1] Following is the required rough sketch of the curve-