SlideShare a Scribd company logo
1 of 18
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

Bezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxBezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxbcanawakadalcollege
 
Surface representation
Surface representationSurface representation
Surface representationSunith Guraddi
 
Hermit curves & beizer curves
Hermit curves & beizer curvesHermit curves & beizer curves
Hermit curves & beizer curvesKKARUNKARTHIK
 
Bezier and Spline Curves and Surfaces
Bezier and Spline Curves and SurfacesBezier and Spline Curves and Surfaces
Bezier and Spline Curves and SurfacesSyed Zaid Irshad
 
Solid modeling
Solid modelingSolid modeling
Solid modelingKRvEsL
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
Hidden line removal algorithm
Hidden line removal algorithmHidden line removal algorithm
Hidden line removal algorithmKKARUNKARTHIK
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
Computer Graphics - Hidden Line Removal Algorithm
Computer Graphics - Hidden Line Removal AlgorithmComputer Graphics - Hidden Line Removal Algorithm
Computer Graphics - Hidden Line Removal AlgorithmJyotiraman De
 
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesOmprakash Chauhan
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clippingMdAlAmin187
 
Geometric transformation
Geometric transformationGeometric transformation
Geometric transformationDhruv Shah
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfacesAnkur Kumar
 
Wireframe models
Wireframe modelsWireframe models
Wireframe modelsMohd Arif
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmMani Kanth
 

What's hot (20)

Bezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docxBezier Curve in Computer Graphics.docx
Bezier Curve in Computer Graphics.docx
 
Surface representation
Surface representationSurface representation
Surface representation
 
Hermit curves & beizer curves
Hermit curves & beizer curvesHermit curves & beizer curves
Hermit curves & beizer curves
 
Bezier and Spline Curves and Surfaces
Bezier and Spline Curves and SurfacesBezier and Spline Curves and Surfaces
Bezier and Spline Curves and Surfaces
 
Solid modeling
Solid modelingSolid modeling
Solid modeling
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Hidden line removal algorithm
Hidden line removal algorithmHidden line removal algorithm
Hidden line removal algorithm
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Computer Graphics - Hidden Line Removal Algorithm
Computer Graphics - Hidden Line Removal AlgorithmComputer Graphics - Hidden Line Removal Algorithm
Computer Graphics - Hidden Line Removal Algorithm
 
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
 
Dda algorithm
Dda algorithmDda algorithm
Dda algorithm
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clipping
 
Geometric transformation
Geometric transformationGeometric transformation
Geometric transformation
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfaces
 
Wireframe models
Wireframe modelsWireframe models
Wireframe models
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Clipping
ClippingClipping
Clipping
 

Similar to Bezier curve & B spline curve

Curve modeling bezier curves
Curve modeling bezier curvesCurve modeling bezier curves
Curve modeling bezier curvesjhansi1986
 
Curve modeling-bezier-curves
Curve modeling-bezier-curvesCurve modeling-bezier-curves
Curve modeling-bezier-curvesMahmudul Hasan
 
2-Vector.pptx
2-Vector.pptx2-Vector.pptx
2-Vector.pptxssfasf
 
Three dimensional geometry
Three dimensional geometryThree dimensional geometry
Three dimensional geometrynitishguptamaps
 
UNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxUNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxdinesh babu
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdfd00a7ece
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdfd00a7ece
 
Vectors.pdf
Vectors.pdfVectors.pdf
Vectors.pdfd00a7ece
 
Further pure mathmatics 3 vectors
Further pure mathmatics 3 vectorsFurther pure mathmatics 3 vectors
Further pure mathmatics 3 vectorsDennis Almeida
 
Analytical Geometry of Three Dimensions
Analytical Geometry of Three DimensionsAnalytical Geometry of Three Dimensions
Analytical Geometry of Three DimensionsKalaiindhu
 
CAD Topology and Geometry Basics
CAD Topology and Geometry BasicsCAD Topology and Geometry Basics
CAD Topology and Geometry BasicsAndrey Dankevich
 
Skewed plate problem
Skewed plate problemSkewed plate problem
Skewed plate problemSONAM PALJOR
 
GATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusGATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusParthDave57
 

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
 
object 3d(2)
object 3d(2)object 3d(2)
object 3d(2)
 
07object3d 1
07object3d 107object3d 1
07object3d 1
 
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 reflectionArvind Kumar
 
3 d transformation Rotation
3 d transformation   Rotation3 d transformation   Rotation
3 d transformation RotationArvind Kumar
 
3 D transformation translation, scaling
3 D transformation   translation, scaling3 D transformation   translation, scaling
3 D transformation translation, scalingArvind Kumar
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clippingArvind Kumar
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmArvind Kumar
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingArvind 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

Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 

Recently uploaded (20)

Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 

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.