SlideShare a Scribd company logo
BEZIER CURVES AND
B-SPLINE CURVE
By:
Arvind Kumar
Assistant Professor
(Vidya College of Engineering)
Contents
By: Arvind Kumar
CG
Curves and Surface
Quadric Surface
Spheres
Ellipsoid
Blobby Objects
Bezier Curves and its Numerical
B-Spline Curve
Curves and Surface
By: Arvind Kumar
CG
Quadric Surface: It is described with Second
Degree Equation (quadratics). Quadric
surfaces, particularly spheres and ellipsoids,
are common elements of graphics scenes.
Spheres: In Cartesian coordinates, a
spherical surface with radius r centered on
the coordinate origin is defined as the set of
points (x, y, z) that satisfy the equation
x2 + y2 + z2 = r2
Curves and Surface
By: Arvind Kumar
CG
Ellipsoid: An ellipsoidal surface can be
described as an extension of a spherical
surface, where the radii in three mutually
perpendicular directions can have different
values.
Blobby Objects: Irregular surfaces and
change their surface characteristics in certain
motion. Called blobby objects. e.g cloth, rubber
melting object water droplets etc.
Concept of Spline
By: Arvind Kumar
CG
Spline: Spline means a flexible strip used to
produce a smooth curve through a designated
set of points. A Spline curve specify by a giving
set of coordinate positions called “Control
Point”.
Interpolation is when a curve passes through a set
of “control points.”
●
● ●
Approximation is when a curve approximates but
doesn’t necessarily contain its control points.
Bezier Curve
By: Arvind Kumar
CG
Bezier Curve: Bezier curves are defined using
four control points, known as knots. Two of
these are the end points of the curve, while the
other two points control the shape of the curve
P0
P1
P2
P1
P2
P3
P0
Bezier Curve
By: Arvind Kumar
CG
Suppose the Curve has n + 1 control-point positions:
pk = (xk, yk, zk), with k varying from 0 to n. These
coordinate points can be blended to produce the
following position vector P(u), which describes the path
of an approximating Bezier polynomial function
between p0 and pn. The position of vector can be given
𝐏 𝐮 =
𝒌=𝟎
𝒏
𝑷 𝒌 𝑩𝑬𝒁 𝒌,𝒏 𝒖 𝟎 ≤ 𝒖 ≤ 𝟏
Bezier Curve
By: Arvind Kumar
CG
The Bezier blending functions BEZk,n(u) are the
Bemstein polynomials:
𝑩𝑬𝒁 𝒌,𝒏 (u) = C(n,k) 𝒖 𝒌(1−u) 𝒏−𝒌
where the C(n, k) are the binomial coefficients
𝐶 𝑛, 𝑘 =
𝑛!
𝑘! (𝑛 − 𝑘)!
The Bezier blending functions with the recursive
calculation
𝑩𝑬𝒁 𝒌,𝒏 (u) = (1−u) 𝑩𝑬𝒁 𝒌,𝒏−𝟏(u) + u 𝑩𝑬𝒁 𝒌−𝟏,𝒏−𝟏(u) ,n>k
≥ 1
Where, BEZ k,k = uk , and BEZ0,k = (1 – u)k .
Bezier Curve
By: Arvind Kumar
CG
A set of three parametric equations for the individual
curve coordinates.
𝒙 𝒖 = 𝒌=𝟎
𝒏
𝒙 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u)
y 𝒖 = 𝒌=𝟎
𝒏
𝒚 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u)
𝒛 𝒖 = 𝒌=𝟎
𝒏
𝒛 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u)
Bezier Curve
By: Arvind Kumar
CG
Properties of Bezier Curve:
1. Bezier curve always passes through the first & last control
points.
2. The degree of polynomial defining the curve segment is one
less than the number of defining polygon points. Therefore
for 4, control points the degree of polynomial is three.
3. The curve generally follows the shape of the defining
polygon.
4. The curve lies entirely within the convex hull formed by
control points.
5. The curve exhibits the variation diminishing property. This
means that the curve does not oscillate about any straight-
line move often than the defining polygon
6. The curve is invariant under an affine transformation.
Bezier Curve - Disadvantage
By: Arvind Kumar
CG
It has two main disadvantages.
• The number of control points is directly related to the
degree. Therefore, to increase the complexity of the
shape of the curve by adding control points requires
increasing the degree of the curve or satisfying the
continuity conditions between consecutive segments
of a composite curve.
• Changing any control points affects the entire curve or
surface, making design of specific sections very
difficult.
Bezier Curve- Numerical
By: Arvind Kumar
CG
Q1. Construct the bezier curve of order 3 and with 4
polygon vertices A(1,1) , B(2,3) , C(4, 3),D(6,4).
Solution: the equation of bezier curve is given as
𝑷 𝒖 = 𝟏 − 𝒖 𝟑P1 +𝟑𝒖(𝟏 − 𝒖) 𝟐 𝑷𝟐 + 𝟑𝒖 𝟐 𝟏 − 𝒖 𝑷𝟑 + 𝒖 𝟑P4
for 0≤u≤1
Where P(u) is the point on curve
Let us take u = 0, ¼, ½, ¾, 1
𝐏 𝐮 =
𝒌=𝟎
𝟑
𝑷 𝒌 𝑩𝑬𝒁 𝒌,𝒏 𝒖
Bezier Curve- Numerical
By: Arvind Kumar
CG
At u=0, P(0) = (1,1)
At u =1/4
P(1/4)= 1 − 1/4 3
P1+3 ∗ 1/4(1 − 1/4)2
𝑃2 + 3 ∗ (
1
4
)2
1 − 1/4 𝑃3 + (
1
4
)3
= 1 −
1
4
3
(1,1)+3 ∗ 1/4(1 − 1/4)2
(2,3) + 3 ∗
1
4
2
1 −
1
4
(4,3) + (
1
4
)3
(6,4)
= 27/64(1,1)+ 27/64 (2,3) + 9/64 (4,3) + 1/64(6,4)
= [27/64 *1 +27/64 * 2 + 9/64 *4 + 1/64 *6, 27/64 *1 +27/64 * 3 + 9/64 *3
+ 1/64 *4]
= [123/64, 139/64]
= (1.9218 , 2.1718)
At u= ½ , P(1/2) = (3.125, 2.87)
At u = ¾, P(3/4) = (4.5156, 3.375)
At u= 1 , P(1) = (6,4)
These are control points for Bezier Curve.
B-Spline Curve
By: Arvind Kumar
CG
The disadvantages are remedied with the B-spline
(basis- spline) representation. The coordinate
positions along a B-spline curve in a blending-
function formulation as
𝑷 𝒖 = 𝒌=𝟎
𝒏
𝒑 𝒌 𝑩 𝒌,𝒅(𝒖) , 𝒖 𝒎𝒊𝒏 ≤ 𝐮 ≤ 𝒖 𝒎𝒂𝒙
Where pk are an input set of n + 1 control points.
B-Spline Curve
By: Arvind Kumar
CG
Blending functions for B-spline curves are defined
by
𝑩 𝒌,𝟏(𝒖 ) =
𝟏 , 𝑖𝑓 𝑢 𝑘 ≤ 𝑢 ≤ 𝑢 𝑘+1
𝟎 , 𝑂𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
𝑩 𝒌,𝒅(𝒖 ) =
𝒖−𝒖 𝒌
𝒖 𝒌+𝒅−𝟏
𝑩 𝒌,𝒅−𝟏(𝒖 ) +
𝒖 𝒌+𝒅−𝒖
𝒖 𝒌+𝒅−𝒖 𝒌+𝒅
𝑩 𝒌+𝟏,𝒅−𝟏(𝒖 )
Where, each blending function is defined over d
subintervals of the total range of u. The selected set of
subinterval endpoints u, is referred to as a knot vector.
B-Spline Curve
By: Arvind Kumar
CG
Types of Knot vector:
1. Uniform Knot: In a Uniform Knot vector individual
knot values are evenly spaced e.g. [0 1 2 3 4].
2. Open Uniform Knot: It has multiplicity of knot values
at the ends equal to the order k of B-Spline basis
function. Internal knot values are evenly spaced.
e.g. k=2 [0 0 1 2 3 3]
k= 3[0 0 0 1 2 3 3 3 ]
k= 4[0 0 0 0 1 2 2 2 2 ]
B-Spline Curve
By: Arvind Kumar
CG
Properties of B-spline curve:
1. The degree of B-Spline polynomial is independent of the
number of vertices of the polygon.
2. The curve generally follows the shape of the defining
polygon.
3. The curve lies within the convex hull of its defining polygon.
4. The curve exhibits the variation diminishing property. This
means that the curve does not oscillate about any straight-
line move often than the defining polygon.
5. The B-Spline allows local control over the curve surface
because each vertex affects the shape of the curve only over
a range of parameter values where its associated basic
function is non-zero.
Bezier curve  & B spline curve

More Related Content

What's hot

Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
Mohammed Mahmoud
 
Hermit curves & beizer curves
Hermit curves & beizer curvesHermit curves & beizer curves
Hermit curves & beizer curves
KKARUNKARTHIK
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
 
Bezeir curve na B spline Curve
Bezeir curve na B spline CurveBezeir curve na B spline Curve
Bezeir curve na B spline Curve
Pooja Dixit
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
Mani Kanth
 
Hidden surface removal algorithm
Hidden surface removal algorithmHidden surface removal algorithm
Hidden surface removal algorithm
KKARUNKARTHIK
 
Hidden surfaces
Hidden surfacesHidden surfaces
Hidden surfacesMohd Arif
 
Solid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representationSolid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representation
Destro Destro
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
Pooja Dixit
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
Ahtesham Ullah khan
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Introduction to the curves
Introduction to the curvesIntroduction to the curves
Introduction to the curves
Arti Parab Academics
 
Hermite cubic spline curve
Hermite cubic spline curveHermite cubic spline curve
Hermite cubic spline curve
Deepak Antil
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
Pooja Dixit
 
3D Transformation
3D Transformation 3D Transformation
3D Transformation
Mahmudul Hasan
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
Aparna Joshi
 
Bezier and Spline Curves and Surfaces
Bezier and Spline Curves and SurfacesBezier and Spline Curves and Surfaces
Bezier and Spline Curves and Surfaces
Syed Zaid Irshad
 
Bezier Curve and Spline Curve
Bezier Curve and Spline CurveBezier Curve and Spline Curve
Bezier Curve and Spline Curve
AsifShahariar1
 

What's hot (20)

Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Hermit curves & beizer curves
Hermit curves & beizer curvesHermit curves & beizer curves
Hermit curves & beizer curves
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Bezeir curve na B spline Curve
Bezeir curve na B spline CurveBezeir curve na B spline Curve
Bezeir curve na B spline Curve
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Hidden surface removal algorithm
Hidden surface removal algorithmHidden surface removal algorithm
Hidden surface removal algorithm
 
Hidden surfaces
Hidden surfacesHidden surfaces
Hidden surfaces
 
Solid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representationSolid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representation
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Introduction to the curves
Introduction to the curvesIntroduction to the curves
Introduction to the curves
 
Hermite cubic spline curve
Hermite cubic spline curveHermite cubic spline curve
Hermite cubic spline curve
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
3D Transformation
3D Transformation 3D Transformation
3D Transformation
 
Polygon filling algorithm
Polygon filling algorithmPolygon filling algorithm
Polygon filling algorithm
 
Bezier and Spline Curves and Surfaces
Bezier and Spline Curves and SurfacesBezier and Spline Curves and Surfaces
Bezier and Spline Curves and Surfaces
 
Bezier Curve and Spline Curve
Bezier Curve and Spline CurveBezier Curve and Spline Curve
Bezier Curve and Spline Curve
 
Bresenham circle
Bresenham circleBresenham circle
Bresenham circle
 

Similar to Bezier curve & B spline curve

Curve modeling bezier curves
Curve modeling bezier curvesCurve modeling bezier curves
Curve modeling bezier curves
jhansi1986
 
Curve modeling-bezier-curves
Curve modeling-bezier-curvesCurve modeling-bezier-curves
Curve modeling-bezier-curves
Mahmudul Hasan
 
Solution kepler chap 1
Solution kepler chap 1Solution kepler chap 1
Solution kepler chap 1
Kamran Khursheed
 
2-Vector.pptx
2-Vector.pptx2-Vector.pptx
2-Vector.pptx
ssfasf
 
Three dimensional geometry
Three dimensional geometryThree dimensional geometry
Three dimensional geometry
nitishguptamaps
 
UNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxUNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptx
dinesh babu
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
d00a7ece
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
d00a7ece
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
d00a7ece
 
Further pure mathmatics 3 vectors
Further pure mathmatics 3 vectorsFurther pure mathmatics 3 vectors
Further pure mathmatics 3 vectors
Dennis Almeida
 
Analytical Geometry of Three Dimensions
Analytical Geometry of Three DimensionsAnalytical Geometry of Three Dimensions
Analytical Geometry of Three Dimensions
Kalaiindhu
 
object 3d(2)
object 3d(2)object 3d(2)
object 3d(2)
HiteshJain007
 
CAD Topology and Geometry Basics
CAD Topology and Geometry BasicsCAD Topology and Geometry Basics
CAD Topology and Geometry BasicsAndrey Dankevich
 
Collinearity Equations
Collinearity EquationsCollinearity Equations
Collinearity Equations
National Cheng Kung University
 
Lect 1_TMT 20303.pptx
Lect 1_TMT 20303.pptxLect 1_TMT 20303.pptx
Lect 1_TMT 20303.pptx
MuhammadArif676
 
Skewed plate problem
Skewed plate problemSkewed plate problem
Skewed plate problem
SONAM PALJOR
 
Notes on vectors
Notes on vectorsNotes on vectors
Notes on vectors
Harsh Dalmia
 
GATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusGATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector Calculus
ParthDave57
 

Similar to Bezier curve & B spline curve (20)

Curve modeling bezier curves
Curve modeling bezier curvesCurve modeling bezier curves
Curve modeling bezier curves
 
Curve modeling-bezier-curves
Curve modeling-bezier-curvesCurve modeling-bezier-curves
Curve modeling-bezier-curves
 
Solution kepler chap 1
Solution kepler chap 1Solution kepler chap 1
Solution kepler chap 1
 
2-Vector.pptx
2-Vector.pptx2-Vector.pptx
2-Vector.pptx
 
Three dimensional geometry
Three dimensional geometryThree dimensional geometry
Three dimensional geometry
 
UNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxUNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptx
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdf
 
Further pure mathmatics 3 vectors
Further pure mathmatics 3 vectorsFurther pure mathmatics 3 vectors
Further pure mathmatics 3 vectors
 
Analytical Geometry of Three Dimensions
Analytical Geometry of Three DimensionsAnalytical Geometry of Three Dimensions
Analytical Geometry of Three Dimensions
 
07object3d 1
07object3d 107object3d 1
07object3d 1
 
object 3d(2)
object 3d(2)object 3d(2)
object 3d(2)
 
CAD Topology and Geometry Basics
CAD Topology and Geometry BasicsCAD Topology and Geometry Basics
CAD Topology and Geometry Basics
 
Collinearity Equations
Collinearity EquationsCollinearity Equations
Collinearity Equations
 
Lect 1_TMT 20303.pptx
Lect 1_TMT 20303.pptxLect 1_TMT 20303.pptx
Lect 1_TMT 20303.pptx
 
Skewed plate problem
Skewed plate problemSkewed plate problem
Skewed plate problem
 
Notes on vectors
Notes on vectorsNotes on vectors
Notes on vectors
 
GATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusGATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector Calculus
 
vectors
vectorsvectors
vectors
 

More from Arvind Kumar

3 d transformation reflection
3 d transformation   reflection3 d transformation   reflection
3 d transformation reflection
Arvind Kumar
 
3 d transformation Rotation
3 d transformation   Rotation3 d transformation   Rotation
3 d transformation Rotation
Arvind Kumar
 
3d Projection
3d Projection3d Projection
3d Projection
Arvind Kumar
 
3 D transformation translation, scaling
3 D transformation   translation, scaling3 D transformation   translation, scaling
3 D transformation translation, scaling
Arvind Kumar
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clipping
Arvind Kumar
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
Arvind Kumar
 
Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
Arvind Kumar
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
data structure
data structuredata structure
data structure
Arvind Kumar
 
Data structure
Data  structureData  structure
Data structure
Arvind Kumar
 

More from Arvind Kumar (10)

3 d transformation reflection
3 d transformation   reflection3 d transformation   reflection
3 d transformation reflection
 
3 d transformation Rotation
3 d transformation   Rotation3 d transformation   Rotation
3 d transformation Rotation
 
3d Projection
3d Projection3d Projection
3d Projection
 
3 D transformation translation, scaling
3 D transformation   translation, scaling3 D transformation   translation, scaling
3 D transformation translation, scaling
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clipping
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
 
Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
 
data structure
data structuredata structure
data structure
 
Data structure
Data  structureData  structure
Data structure
 

Recently uploaded

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 

Recently uploaded (20)

Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 

Bezier curve & B spline curve

  • 1. BEZIER CURVES AND B-SPLINE CURVE By: Arvind Kumar Assistant Professor (Vidya College of Engineering)
  • 2. Contents By: Arvind Kumar CG Curves and Surface Quadric Surface Spheres Ellipsoid Blobby Objects Bezier Curves and its Numerical B-Spline Curve
  • 3. Curves and Surface By: Arvind Kumar CG Quadric Surface: It is described with Second Degree Equation (quadratics). Quadric surfaces, particularly spheres and ellipsoids, are common elements of graphics scenes. Spheres: In Cartesian coordinates, a spherical surface with radius r centered on the coordinate origin is defined as the set of points (x, y, z) that satisfy the equation x2 + y2 + z2 = r2
  • 4. Curves and Surface By: Arvind Kumar CG Ellipsoid: An ellipsoidal surface can be described as an extension of a spherical surface, where the radii in three mutually perpendicular directions can have different values. Blobby Objects: Irregular surfaces and change their surface characteristics in certain motion. Called blobby objects. e.g cloth, rubber melting object water droplets etc.
  • 5. Concept of Spline By: Arvind Kumar CG Spline: Spline means a flexible strip used to produce a smooth curve through a designated set of points. A Spline curve specify by a giving set of coordinate positions called “Control Point”. Interpolation is when a curve passes through a set of “control points.” ● ● ● Approximation is when a curve approximates but doesn’t necessarily contain its control points.
  • 6. Bezier Curve By: Arvind Kumar CG Bezier Curve: Bezier curves are defined using four control points, known as knots. Two of these are the end points of the curve, while the other two points control the shape of the curve P0 P1 P2 P1 P2 P3 P0
  • 7. Bezier Curve By: Arvind Kumar CG Suppose the Curve has n + 1 control-point positions: pk = (xk, yk, zk), with k varying from 0 to n. These coordinate points can be blended to produce the following position vector P(u), which describes the path of an approximating Bezier polynomial function between p0 and pn. The position of vector can be given 𝐏 𝐮 = 𝒌=𝟎 𝒏 𝑷 𝒌 𝑩𝑬𝒁 𝒌,𝒏 𝒖 𝟎 ≤ 𝒖 ≤ 𝟏
  • 8. Bezier Curve By: Arvind Kumar CG The Bezier blending functions BEZk,n(u) are the Bemstein polynomials: 𝑩𝑬𝒁 𝒌,𝒏 (u) = C(n,k) 𝒖 𝒌(1−u) 𝒏−𝒌 where the C(n, k) are the binomial coefficients 𝐶 𝑛, 𝑘 = 𝑛! 𝑘! (𝑛 − 𝑘)! The Bezier blending functions with the recursive calculation 𝑩𝑬𝒁 𝒌,𝒏 (u) = (1−u) 𝑩𝑬𝒁 𝒌,𝒏−𝟏(u) + u 𝑩𝑬𝒁 𝒌−𝟏,𝒏−𝟏(u) ,n>k ≥ 1 Where, BEZ k,k = uk , and BEZ0,k = (1 – u)k .
  • 9. Bezier Curve By: Arvind Kumar CG A set of three parametric equations for the individual curve coordinates. 𝒙 𝒖 = 𝒌=𝟎 𝒏 𝒙 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u) y 𝒖 = 𝒌=𝟎 𝒏 𝒚 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u) 𝒛 𝒖 = 𝒌=𝟎 𝒏 𝒛 𝒌 𝑩𝑬𝒁 𝒌,𝒏(u)
  • 10. Bezier Curve By: Arvind Kumar CG Properties of Bezier Curve: 1. Bezier curve always passes through the first & last control points. 2. The degree of polynomial defining the curve segment is one less than the number of defining polygon points. Therefore for 4, control points the degree of polynomial is three. 3. The curve generally follows the shape of the defining polygon. 4. The curve lies entirely within the convex hull formed by control points. 5. The curve exhibits the variation diminishing property. This means that the curve does not oscillate about any straight- line move often than the defining polygon 6. The curve is invariant under an affine transformation.
  • 11. Bezier Curve - Disadvantage By: Arvind Kumar CG It has two main disadvantages. • The number of control points is directly related to the degree. Therefore, to increase the complexity of the shape of the curve by adding control points requires increasing the degree of the curve or satisfying the continuity conditions between consecutive segments of a composite curve. • Changing any control points affects the entire curve or surface, making design of specific sections very difficult.
  • 12. Bezier Curve- Numerical By: Arvind Kumar CG Q1. Construct the bezier curve of order 3 and with 4 polygon vertices A(1,1) , B(2,3) , C(4, 3),D(6,4). Solution: the equation of bezier curve is given as 𝑷 𝒖 = 𝟏 − 𝒖 𝟑P1 +𝟑𝒖(𝟏 − 𝒖) 𝟐 𝑷𝟐 + 𝟑𝒖 𝟐 𝟏 − 𝒖 𝑷𝟑 + 𝒖 𝟑P4 for 0≤u≤1 Where P(u) is the point on curve Let us take u = 0, ¼, ½, ¾, 1 𝐏 𝐮 = 𝒌=𝟎 𝟑 𝑷 𝒌 𝑩𝑬𝒁 𝒌,𝒏 𝒖
  • 13. Bezier Curve- Numerical By: Arvind Kumar CG At u=0, P(0) = (1,1) At u =1/4 P(1/4)= 1 − 1/4 3 P1+3 ∗ 1/4(1 − 1/4)2 𝑃2 + 3 ∗ ( 1 4 )2 1 − 1/4 𝑃3 + ( 1 4 )3 = 1 − 1 4 3 (1,1)+3 ∗ 1/4(1 − 1/4)2 (2,3) + 3 ∗ 1 4 2 1 − 1 4 (4,3) + ( 1 4 )3 (6,4) = 27/64(1,1)+ 27/64 (2,3) + 9/64 (4,3) + 1/64(6,4) = [27/64 *1 +27/64 * 2 + 9/64 *4 + 1/64 *6, 27/64 *1 +27/64 * 3 + 9/64 *3 + 1/64 *4] = [123/64, 139/64] = (1.9218 , 2.1718) At u= ½ , P(1/2) = (3.125, 2.87) At u = ¾, P(3/4) = (4.5156, 3.375) At u= 1 , P(1) = (6,4) These are control points for Bezier Curve.
  • 14. B-Spline Curve By: Arvind Kumar CG The disadvantages are remedied with the B-spline (basis- spline) representation. The coordinate positions along a B-spline curve in a blending- function formulation as 𝑷 𝒖 = 𝒌=𝟎 𝒏 𝒑 𝒌 𝑩 𝒌,𝒅(𝒖) , 𝒖 𝒎𝒊𝒏 ≤ 𝐮 ≤ 𝒖 𝒎𝒂𝒙 Where pk are an input set of n + 1 control points.
  • 15. B-Spline Curve By: Arvind Kumar CG Blending functions for B-spline curves are defined by 𝑩 𝒌,𝟏(𝒖 ) = 𝟏 , 𝑖𝑓 𝑢 𝑘 ≤ 𝑢 ≤ 𝑢 𝑘+1 𝟎 , 𝑂𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 𝑩 𝒌,𝒅(𝒖 ) = 𝒖−𝒖 𝒌 𝒖 𝒌+𝒅−𝟏 𝑩 𝒌,𝒅−𝟏(𝒖 ) + 𝒖 𝒌+𝒅−𝒖 𝒖 𝒌+𝒅−𝒖 𝒌+𝒅 𝑩 𝒌+𝟏,𝒅−𝟏(𝒖 ) Where, each blending function is defined over d subintervals of the total range of u. The selected set of subinterval endpoints u, is referred to as a knot vector.
  • 16. B-Spline Curve By: Arvind Kumar CG Types of Knot vector: 1. Uniform Knot: In a Uniform Knot vector individual knot values are evenly spaced e.g. [0 1 2 3 4]. 2. Open Uniform Knot: It has multiplicity of knot values at the ends equal to the order k of B-Spline basis function. Internal knot values are evenly spaced. e.g. k=2 [0 0 1 2 3 3] k= 3[0 0 0 1 2 3 3 3 ] k= 4[0 0 0 0 1 2 2 2 2 ]
  • 17. B-Spline Curve By: Arvind Kumar CG Properties of B-spline curve: 1. The degree of B-Spline polynomial is independent of the number of vertices of the polygon. 2. The curve generally follows the shape of the defining polygon. 3. The curve lies within the convex hull of its defining polygon. 4. The curve exhibits the variation diminishing property. This means that the curve does not oscillate about any straight- line move often than the defining polygon. 5. The B-Spline allows local control over the curve surface because each vertex affects the shape of the curve only over a range of parameter values where its associated basic function is non-zero.