SlideShare a Scribd company logo
Computer Graphics
Computer Graphics
Curves and Surfaces
Computer Graphics
10/10/2008 Lecture 5 2
Spline
• A long flexible strips of metal used by
draftspersons to lay out the surfaces of
airplanes, cars and ships
• Ducks weights attached to the splines
were used to pull the spline in different
directions
• The metal splines had second order
continuity
Computer Graphics
10/10/2008 Lecture 5 3
B-Splines (for basis splines)
• B-Splines
– Another polynomial curve for modelling curves and
surfaces
– Consists of curve segments whose polynomial
coefficients only depend on just a few control points
• Local control
– Segments joined at knots
Computer Graphics
B-splines
• The curve does not necessarily pass through
the control points
• The shape is constrained to the convex hull
made by the control points
• Uniform cubic b-splines has C2 continuity
– Higher than Hermite or Bezier curves
Computer Graphics
10/10/2008 Lecture 5
Basis Functions
knots
• We can create a long curve using many knots and B-splines
• The unweighted cubic B-Splines have been shown for clarity.
• These are weighted and summed to produce a curve of the
desired shape
t4 8 12
Computer Graphics
10/10/2008 Lecture 5 6
Generating a curve
X(t)
t
t
Opposite we see an
example of a shape to be
generated.
Here we see the curve
again with the weighted
B-Splines which
generated the required
shape.
Computer Graphics
10/10/2008 Lecture 5 7
The basic one:
Uniform Cubic B-Splines
( )
it
tttttt
xxwhere
tttfortX
i
iii
ii
ii
≤
−−−=












−
−
−−
=
=
≤≤=
−
+
3knots,:
1,,)(,)(
,
0141
0303
0363
1331
6
1
),...,(:
)(
23
3
1
T
(i)
(i)T
t
M
Q
MQt
• Cubic B-splines with uniform knot-vector is the
most commonly used form of B-splines
Computer Graphics
10/10/2008 Lecture 5 8
Cubic B-Splines
• The unweighted spline set of 10 control points, 10 splines,
14 knots, and but only 7 intervals.
• You can see why t3 to t4 is the first interval with a curve
since it is the first with all four B-Spline functions.
• t9 to t10 is the last interval
43
t86 m
m+1
0
Computer Graphics
Domain of the function
• Order k, Degree k-1
• Control points Pi (i=0,…,m)
• Knots : tj, (j=0,…, k + m)
• The domain of the function tk-1 t≦ ≦ tm+1
– Below, k = 4, m = 9, domain, t3 t≦ ≦ t10
3
t
m+1
0
Computer Graphics
10/10/2008 Lecture 5 10
Cubic Uniform B-Spline
2D example
• For each i ≥ 4 , there is a knot between Qi-1 and Qi at t = ti.
• Initial points at t3 and tm+1 are also knots. The following
illustrates an example with control points set P0 … P9:
Knot.
Control point.
Computer Graphics
10/10/2008 Lecture 5 11
Uniform Non-rational B-Splines.
• First segment Q3 is defined by point P0 through P3 over the
range t3 = 0 to t4 = 1. So m at least 3 for cubic spline.
Knot.
Control point.P1
P2
P3
P0
Q3
Computer Graphics
10/10/2008 Lecture 5 12
Uniform Non-rational B-Splines.
• Second segment Q4 is defined by point P1 through P4 over
the range t4 = 1 to t5= 2.
Knot.
Control point.
Q4
P1
P3
P4
P2
Computer Graphics
10/10/2008 Lecture 5 13
A Bspline of order k is a parametric curve composed of a linear
combination of basis B-splines Bi,n
Pi (i=0,…,m) the control points
Knots: tj, j=0,…, k + m
The B-splines can be defined by
B-Spline :
A more general definition
∑=
=
m
i
nii tBPtp
0
, )()(
)()()(
otherwise0,
ttt1,
)(
1,1
1
1,
1
,
1ii
1,
tB
tt
tt
tB
tt
tt
tB
tB
ki
iki
ki
ki
iki
i
ki
i
−+
−+
+
−
−+
+
−
−
+
−
−
=


 <≤
=
Computer Graphics
10/10/2008 Lecture 5 14
The shape of the basis functions
Bi,2 : linear basis functions
Order = 2, degree = 1
C0 continuous
http://www.ibiblio.org/e-notes/Splines/Basis.htm
Computer Graphics
10/10/2008 Lecture 5 15
The shape of the basis functions
Bi,3 : Quadratic basis functions
Order = 3, degree = 2
C1 continuous
http://www.ibiblio.org/e-notes/Splines/Basis.htm
Computer Graphics
10/10/2008 Lecture 5 16
The shape of the basis functions
Bi,4 : Cubic basis functions
Order = 4, degree = 3
C2 continuous
http://www.ibiblio.org/e-notes/Splines/Basis.htm
Computer Graphics
Uniform / non-uniform B-splines
• Uniform B-splines
– The knots are equidistant / non-equidistant
– The previous examples were uniform B-splines
• Parametric interval between knots does not
have to be equal.
Non-uniform B-splines
intervalsamet,equidistanwere,...,,, 210 mtttt
Computer Graphics
10/10/2008
Non-uniform B-splines.
• Blending functions no longer the same for each interval.
• Advantages
– Continuity at selected control points can be reduced to
C1 or lower – allows us to interpolate a control point
without side-effects.
– Can interpolate start and end points.
– Easy to add extra knots and control points.
• Good for shape modelling !
Computer Graphics
Controlling the shape of the curves
• Can control the shape through
– Control points
• Overlapping the control points to make it pass
through a specific point
– Knots
• Changing the continuity by increasing the
multiplicity at some knot (non-uniform bsplines)
Computer Graphics
10/10/2008 Lecture 5 20
Controlling the shape through
control points
First knot shown with 4
control points, and their
convex hull.
P1
P2P0
P3
Computer Graphics
10/10/2008 Lecture 5 21
Controlling the shape through
control points
First two curve segments
shown with their respective
convex hulls.
Centre Knot must lie in the
intersection of the 2 convex
hulls.
P1
P2P0
P4
P3
Computer Graphics
10/10/2008 Lecture 5 22
Repeated control point.
First two curve segments
shown with their respective
convex hulls.
The curve is forced to lie on
the line that joins the 2
convex hulls.
P1=P2
P0
P3
P4
Computer Graphics
10/10/2008 Lecture 5 23
Triple control point.
First two curve segments
shown with their respective
convex hulls.
Both convex hulls collapse
to straight lines – all the
curve must lie on these lines.
P1=P2=P3
P0
P4
Computer Graphics
10/10/2008 Lecture 5 24
Controlling the shape through knots
• Smoothness increases with order k in Bi,k
– Quadratic, k = 3, gives up to C1 continuity.
– Cubic, k = 4 gives up to C2 continuity.
• However, we can lower continuity order too with Multiple
Knots, ie. ti = ti+1= ti+2 = … Knots are coincident and so
now we have non-uniform knot intervals.
• A knot with multiplicity p is continuous to the
(k-1-p)th derivative.
• A knot with multiplicity k has no continuity at all, i.e. the
curve is broken at that knot.
)()()(
otherwise0,
ttt1,
)(
1,1
1
1,
1
,
1ii
1,
tB
tt
tt
tB
tt
tt
tB
tB
ki
iki
ki
ki
iki
i
ki
i
−+
−+
+
−
−+
+
−
−
+
−
−
=


 <≤
=
Computer Graphics
B-Splines at multiple knots
• Cubic B-spline
• Multiplicities are indicated
Computer Graphics
Knot multiplicity
• Consider the uniform cubic (n=4) B-spline curve,
t={0,1, … ,13}, m=9 , n=4, 7 segments
Computer Graphics Knot multiplicity
• Double knot at 5,
• knot ={0,1,2,3,4,5,5,6,7,8,9,10,11,12}
• 6 segments, continuity = 1
Computer Graphics Knot multiplicity
• Triple knot at 5
• knot={0,1,2,3,4
,5,5,5,6,7,8,9,1
0,11}
• 5 segments
Computer Graphics
Knot multiplicity
• Quadruple knot at 5
• 4 segments
Computer Graphics
10/10/2008 Lecture 5 30
Summary of B-Splines.
• Functions that can be manipulated by a series of control
points with C2 continuity and local control.
• Don’t pass through their control points, although can be
forced.
• Uniform
– Knots are equally spaced in t.
• Non-Uniform
– Knots are unequally spaced
– Allows addition of extra control points anywhere in the set.

More Related Content

What's hot

B-spline
B-spline B-spline
B-spline
nmahi96
 
Presentation on bezier curve
Presentation on bezier curvePresentation on bezier curve
Presentation on bezier curve
Satyendra Rajput
 
Bezier curve & B spline curve
Bezier curve  & B spline curveBezier curve  & B spline curve
Bezier curve & B spline curve
Arvind Kumar
 
Bezier Curves
Bezier CurvesBezier Curves
Bezier Curves
Arundhati Kanungo
 
B spline surfeces
B spline surfecesB spline surfeces
B spline surfecesramac123
 
Geometric Curves
Geometric Curves Geometric Curves
Geometric Curves
jntuhcej
 
Curves
CurvesCurves
Hermit curves &amp; beizer curves
Hermit curves &amp; beizer curvesHermit curves &amp; beizer curves
Hermit curves &amp; beizer curves
KKARUNKARTHIK
 
Bezier curve
Bezier curveBezier curve
Bezier curve
amiyadash
 
Bazier curve Algorithom for Computer Gramphics prsentation
Bazier curve Algorithom for Computer Gramphics prsentation Bazier curve Algorithom for Computer Gramphics prsentation
Bazier curve Algorithom for Computer Gramphics prsentation
Google
 
Hermite bicubic-surface-patch
Hermite bicubic-surface-patchHermite bicubic-surface-patch
Hermite bicubic-surface-patchRohit Gothwal
 
Surface representation
Surface representationSurface representation
Surface representation
Sunith Guraddi
 
Synthetics surfaces unit ii
Synthetics surfaces unit iiSynthetics surfaces unit ii
Synthetics surfaces unit ii
jntuhcej
 
Synthetic surfaces
Synthetic surfaces Synthetic surfaces
Synthetic surfaces
jntuhcej
 
Introduction to the curves
Introduction to the curvesIntroduction to the curves
Introduction to the curves
Arti Parab Academics
 
Synthetic curve
Synthetic curveSynthetic curve
Synthetic curve
Dhruv Shah
 
Bezier curve computer graphics
Bezier curve computer graphicsBezier curve computer graphics
Bezier curve computer graphics
University of Potsdam
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
Pooja Dixit
 

What's hot (20)

B-spline
B-spline B-spline
B-spline
 
Presentation on bezier curve
Presentation on bezier curvePresentation on bezier curve
Presentation on bezier curve
 
Bezier curve & B spline curve
Bezier curve  & B spline curveBezier curve  & B spline curve
Bezier curve & B spline curve
 
Bezier Curves
Bezier CurvesBezier Curves
Bezier Curves
 
B spline surfeces
B spline surfecesB spline surfeces
B spline surfeces
 
Geometric Curves
Geometric Curves Geometric Curves
Geometric Curves
 
Curves
CurvesCurves
Curves
 
Hermit curves &amp; beizer curves
Hermit curves &amp; beizer curvesHermit curves &amp; beizer curves
Hermit curves &amp; beizer curves
 
Bezier curve
Bezier curveBezier curve
Bezier curve
 
Bazier curve Algorithom for Computer Gramphics prsentation
Bazier curve Algorithom for Computer Gramphics prsentation Bazier curve Algorithom for Computer Gramphics prsentation
Bazier curve Algorithom for Computer Gramphics prsentation
 
Hermite bicubic-surface-patch
Hermite bicubic-surface-patchHermite bicubic-surface-patch
Hermite bicubic-surface-patch
 
Surface representation
Surface representationSurface representation
Surface representation
 
Synthetics surfaces unit ii
Synthetics surfaces unit iiSynthetics surfaces unit ii
Synthetics surfaces unit ii
 
Synthetic surfaces
Synthetic surfaces Synthetic surfaces
Synthetic surfaces
 
Introduction to the curves
Introduction to the curvesIntroduction to the curves
Introduction to the curves
 
Synthetic curve
Synthetic curveSynthetic curve
Synthetic curve
 
Bezier curve computer graphics
Bezier curve computer graphicsBezier curve computer graphics
Bezier curve computer graphics
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
Curves
CurvesCurves
Curves
 
Lect14
Lect14Lect14
Lect14
 

Viewers also liked

Curves And Surfaces Representation And Application
Curves And Surfaces Representation And ApplicationCurves And Surfaces Representation And Application
Curves And Surfaces Representation And Application
Diaa ElKott
 
CS 354 Bezier Curves
CS 354 Bezier Curves CS 354 Bezier Curves
CS 354 Bezier Curves
Mark Kilgard
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
Mohammed Mahmoud
 
Curves in Engineering
Curves in EngineeringCurves in Engineering
Curves in Engineering
Rathnavel Ponnuswami
 
Bezier Curves Based trajectory planning
Bezier Curves Based trajectory planningBezier Curves Based trajectory planning
Bezier Curves Based trajectory planningMohammad Issa
 
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Daroko blog(www.professionalbloggertricks.com)
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsKasun Ranga Wijeweera
 
Convex hull
Convex hullConvex hull
Convex hull
Shiwangi Thakur
 
Convex Optimization
Convex OptimizationConvex Optimization
Convex Optimization
adil raja
 
Bezier curves
Bezier curvesBezier curves
Bezier curves
Harmanpreet Singh
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
Vivek Kumar Sinha
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
Rajesh Timane, PhD
 
Curves
CurvesCurves
Topic 4 curve lesson 2
Topic 4   curve lesson 2Topic 4   curve lesson 2
Topic 4 curve lesson 2kmasz kamal
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
 
Unit 1 engineering curves
Unit 1 engineering curvesUnit 1 engineering curves
Unit 1 engineering curvesVagalla Reddy
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical MethodJoseph Konnully
 

Viewers also liked (20)

Curves And Surfaces Representation And Application
Curves And Surfaces Representation And ApplicationCurves And Surfaces Representation And Application
Curves And Surfaces Representation And Application
 
CS 354 Bezier Curves
CS 354 Bezier Curves CS 354 Bezier Curves
CS 354 Bezier Curves
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Curves in Engineering
Curves in EngineeringCurves in Engineering
Curves in Engineering
 
Bezier Curves Based trajectory planning
Bezier Curves Based trajectory planningBezier Curves Based trajectory planning
Bezier Curves Based trajectory planning
 
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
 
An Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of PointsAn Efficient Convex Hull Algorithm for a Planer Set of Points
An Efficient Convex Hull Algorithm for a Planer Set of Points
 
Convex Hull Algorithms
Convex Hull AlgorithmsConvex Hull Algorithms
Convex Hull Algorithms
 
Convex hull
Convex hullConvex hull
Convex hull
 
convex hull
convex hullconvex hull
convex hull
 
Convex Optimization
Convex OptimizationConvex Optimization
Convex Optimization
 
Bezier curves
Bezier curvesBezier curves
Bezier curves
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
 
Linear programming graphical method (feasibility)
Linear programming   graphical method (feasibility)Linear programming   graphical method (feasibility)
Linear programming graphical method (feasibility)
 
Curves
CurvesCurves
Curves
 
Topic 4 curve lesson 2
Topic 4   curve lesson 2Topic 4   curve lesson 2
Topic 4 curve lesson 2
 
Topic 4 - Curve
Topic 4 - CurveTopic 4 - Curve
Topic 4 - Curve
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Unit 1 engineering curves
Unit 1 engineering curvesUnit 1 engineering curves
Unit 1 engineering curves
 
Linear programming - Model formulation, Graphical Method
Linear programming  - Model formulation, Graphical MethodLinear programming  - Model formulation, Graphical Method
Linear programming - Model formulation, Graphical Method
 

Similar to Cg

UNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxUNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptx
dinesh babu
 
CAD - UNIT 2 (Geometric Modelling)
CAD - UNIT 2 (Geometric Modelling)CAD - UNIT 2 (Geometric Modelling)
CAD - UNIT 2 (Geometric Modelling)
Priscilla CPG
 
ME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modelingME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modeling
Javith Saleem
 
Unit 2 curves &amp; surfaces
Unit 2  curves &amp; surfacesUnit 2  curves &amp; surfaces
Unit 2 curves &amp; surfaces
S.DHARANI KUMAR
 
Two way slab
Two way slabTwo way slab
Two way slab
Priodeep Chowdhury
 
5_6221983039971394498.pptx
5_6221983039971394498.pptx5_6221983039971394498.pptx
5_6221983039971394498.pptx
NachiketKadlag1
 
Direct-Design-Method1.pdf
Direct-Design-Method1.pdfDirect-Design-Method1.pdf
Direct-Design-Method1.pdf
Wifin1
 
object 3d(2)
object 3d(2)object 3d(2)
object 3d(2)
HiteshJain007
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
Chandrakant Divate
 
Curves wire frame modelling
Curves wire frame modellingCurves wire frame modelling
Curves wire frame modelling
jntuhcej
 
UNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLINGUNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLING
TAMILMECHKIT
 
Techniques for Geometric Modelling
Techniques for Geometric ModellingTechniques for Geometric Modelling
Techniques for Geometric Modelling
Nafis Ahmad
 
final Line balancing slide12.ppt
final Line balancing slide12.pptfinal Line balancing slide12.ppt
final Line balancing slide12.ppt
xicohos114
 
Reinforced concrete Course Assignments, 2022
Reinforced concrete Course Assignments, 2022Reinforced concrete Course Assignments, 2022
Reinforced concrete Course Assignments, 2022
JanneHanka
 
Rendering Curves and Surfaces
Rendering Curves and SurfacesRendering Curves and Surfaces
Rendering Curves and Surfaces
Syed Zaid Irshad
 
3D Curve Project
3D Curve Project3D Curve Project
3D Curve Project
graphitech
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptx
TaoqeerRajput
 

Similar to Cg (20)

UNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptxUNIT 2-Geometric Modeling.pptx
UNIT 2-Geometric Modeling.pptx
 
CAD - UNIT 2 (Geometric Modelling)
CAD - UNIT 2 (Geometric Modelling)CAD - UNIT 2 (Geometric Modelling)
CAD - UNIT 2 (Geometric Modelling)
 
ME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modelingME6501 Unit 2 geometric modeling
ME6501 Unit 2 geometric modeling
 
Unit 2 curves &amp; surfaces
Unit 2  curves &amp; surfacesUnit 2  curves &amp; surfaces
Unit 2 curves &amp; surfaces
 
Two way slab
Two way slabTwo way slab
Two way slab
 
5_6221983039971394498.pptx
5_6221983039971394498.pptx5_6221983039971394498.pptx
5_6221983039971394498.pptx
 
Direct-Design-Method1.pdf
Direct-Design-Method1.pdfDirect-Design-Method1.pdf
Direct-Design-Method1.pdf
 
07object3d 1
07object3d 107object3d 1
07object3d 1
 
object 3d(2)
object 3d(2)object 3d(2)
object 3d(2)
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Curves wire frame modelling
Curves wire frame modellingCurves wire frame modelling
Curves wire frame modelling
 
UNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLINGUNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLING
 
Techniques for Geometric Modelling
Techniques for Geometric ModellingTechniques for Geometric Modelling
Techniques for Geometric Modelling
 
Cpmprt
CpmprtCpmprt
Cpmprt
 
final Line balancing slide12.ppt
final Line balancing slide12.pptfinal Line balancing slide12.ppt
final Line balancing slide12.ppt
 
Reinforced concrete Course Assignments, 2022
Reinforced concrete Course Assignments, 2022Reinforced concrete Course Assignments, 2022
Reinforced concrete Course Assignments, 2022
 
Rendering Curves and Surfaces
Rendering Curves and SurfacesRendering Curves and Surfaces
Rendering Curves and Surfaces
 
3D Curve Project
3D Curve Project3D Curve Project
3D Curve Project
 
CS6491Project4
CS6491Project4CS6491Project4
CS6491Project4
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptx
 

Recently uploaded

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 

Recently uploaded (20)

Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 

Cg

  • 2. Computer Graphics 10/10/2008 Lecture 5 2 Spline • A long flexible strips of metal used by draftspersons to lay out the surfaces of airplanes, cars and ships • Ducks weights attached to the splines were used to pull the spline in different directions • The metal splines had second order continuity
  • 3. Computer Graphics 10/10/2008 Lecture 5 3 B-Splines (for basis splines) • B-Splines – Another polynomial curve for modelling curves and surfaces – Consists of curve segments whose polynomial coefficients only depend on just a few control points • Local control – Segments joined at knots
  • 4. Computer Graphics B-splines • The curve does not necessarily pass through the control points • The shape is constrained to the convex hull made by the control points • Uniform cubic b-splines has C2 continuity – Higher than Hermite or Bezier curves
  • 5. Computer Graphics 10/10/2008 Lecture 5 Basis Functions knots • We can create a long curve using many knots and B-splines • The unweighted cubic B-Splines have been shown for clarity. • These are weighted and summed to produce a curve of the desired shape t4 8 12
  • 6. Computer Graphics 10/10/2008 Lecture 5 6 Generating a curve X(t) t t Opposite we see an example of a shape to be generated. Here we see the curve again with the weighted B-Splines which generated the required shape.
  • 7. Computer Graphics 10/10/2008 Lecture 5 7 The basic one: Uniform Cubic B-Splines ( ) it tttttt xxwhere tttfortX i iii ii ii ≤ −−−=             − − −− = = ≤≤= − + 3knots,: 1,,)(,)( , 0141 0303 0363 1331 6 1 ),...,(: )( 23 3 1 T (i) (i)T t M Q MQt • Cubic B-splines with uniform knot-vector is the most commonly used form of B-splines
  • 8. Computer Graphics 10/10/2008 Lecture 5 8 Cubic B-Splines • The unweighted spline set of 10 control points, 10 splines, 14 knots, and but only 7 intervals. • You can see why t3 to t4 is the first interval with a curve since it is the first with all four B-Spline functions. • t9 to t10 is the last interval 43 t86 m m+1 0
  • 9. Computer Graphics Domain of the function • Order k, Degree k-1 • Control points Pi (i=0,…,m) • Knots : tj, (j=0,…, k + m) • The domain of the function tk-1 t≦ ≦ tm+1 – Below, k = 4, m = 9, domain, t3 t≦ ≦ t10 3 t m+1 0
  • 10. Computer Graphics 10/10/2008 Lecture 5 10 Cubic Uniform B-Spline 2D example • For each i ≥ 4 , there is a knot between Qi-1 and Qi at t = ti. • Initial points at t3 and tm+1 are also knots. The following illustrates an example with control points set P0 … P9: Knot. Control point.
  • 11. Computer Graphics 10/10/2008 Lecture 5 11 Uniform Non-rational B-Splines. • First segment Q3 is defined by point P0 through P3 over the range t3 = 0 to t4 = 1. So m at least 3 for cubic spline. Knot. Control point.P1 P2 P3 P0 Q3
  • 12. Computer Graphics 10/10/2008 Lecture 5 12 Uniform Non-rational B-Splines. • Second segment Q4 is defined by point P1 through P4 over the range t4 = 1 to t5= 2. Knot. Control point. Q4 P1 P3 P4 P2
  • 13. Computer Graphics 10/10/2008 Lecture 5 13 A Bspline of order k is a parametric curve composed of a linear combination of basis B-splines Bi,n Pi (i=0,…,m) the control points Knots: tj, j=0,…, k + m The B-splines can be defined by B-Spline : A more general definition ∑= = m i nii tBPtp 0 , )()( )()()( otherwise0, ttt1, )( 1,1 1 1, 1 , 1ii 1, tB tt tt tB tt tt tB tB ki iki ki ki iki i ki i −+ −+ + − −+ + − − + − − =    <≤ =
  • 14. Computer Graphics 10/10/2008 Lecture 5 14 The shape of the basis functions Bi,2 : linear basis functions Order = 2, degree = 1 C0 continuous http://www.ibiblio.org/e-notes/Splines/Basis.htm
  • 15. Computer Graphics 10/10/2008 Lecture 5 15 The shape of the basis functions Bi,3 : Quadratic basis functions Order = 3, degree = 2 C1 continuous http://www.ibiblio.org/e-notes/Splines/Basis.htm
  • 16. Computer Graphics 10/10/2008 Lecture 5 16 The shape of the basis functions Bi,4 : Cubic basis functions Order = 4, degree = 3 C2 continuous http://www.ibiblio.org/e-notes/Splines/Basis.htm
  • 17. Computer Graphics Uniform / non-uniform B-splines • Uniform B-splines – The knots are equidistant / non-equidistant – The previous examples were uniform B-splines • Parametric interval between knots does not have to be equal. Non-uniform B-splines intervalsamet,equidistanwere,...,,, 210 mtttt
  • 18. Computer Graphics 10/10/2008 Non-uniform B-splines. • Blending functions no longer the same for each interval. • Advantages – Continuity at selected control points can be reduced to C1 or lower – allows us to interpolate a control point without side-effects. – Can interpolate start and end points. – Easy to add extra knots and control points. • Good for shape modelling !
  • 19. Computer Graphics Controlling the shape of the curves • Can control the shape through – Control points • Overlapping the control points to make it pass through a specific point – Knots • Changing the continuity by increasing the multiplicity at some knot (non-uniform bsplines)
  • 20. Computer Graphics 10/10/2008 Lecture 5 20 Controlling the shape through control points First knot shown with 4 control points, and their convex hull. P1 P2P0 P3
  • 21. Computer Graphics 10/10/2008 Lecture 5 21 Controlling the shape through control points First two curve segments shown with their respective convex hulls. Centre Knot must lie in the intersection of the 2 convex hulls. P1 P2P0 P4 P3
  • 22. Computer Graphics 10/10/2008 Lecture 5 22 Repeated control point. First two curve segments shown with their respective convex hulls. The curve is forced to lie on the line that joins the 2 convex hulls. P1=P2 P0 P3 P4
  • 23. Computer Graphics 10/10/2008 Lecture 5 23 Triple control point. First two curve segments shown with their respective convex hulls. Both convex hulls collapse to straight lines – all the curve must lie on these lines. P1=P2=P3 P0 P4
  • 24. Computer Graphics 10/10/2008 Lecture 5 24 Controlling the shape through knots • Smoothness increases with order k in Bi,k – Quadratic, k = 3, gives up to C1 continuity. – Cubic, k = 4 gives up to C2 continuity. • However, we can lower continuity order too with Multiple Knots, ie. ti = ti+1= ti+2 = … Knots are coincident and so now we have non-uniform knot intervals. • A knot with multiplicity p is continuous to the (k-1-p)th derivative. • A knot with multiplicity k has no continuity at all, i.e. the curve is broken at that knot. )()()( otherwise0, ttt1, )( 1,1 1 1, 1 , 1ii 1, tB tt tt tB tt tt tB tB ki iki ki ki iki i ki i −+ −+ + − −+ + − − + − − =    <≤ =
  • 25. Computer Graphics B-Splines at multiple knots • Cubic B-spline • Multiplicities are indicated
  • 26. Computer Graphics Knot multiplicity • Consider the uniform cubic (n=4) B-spline curve, t={0,1, … ,13}, m=9 , n=4, 7 segments
  • 27. Computer Graphics Knot multiplicity • Double knot at 5, • knot ={0,1,2,3,4,5,5,6,7,8,9,10,11,12} • 6 segments, continuity = 1
  • 28. Computer Graphics Knot multiplicity • Triple knot at 5 • knot={0,1,2,3,4 ,5,5,5,6,7,8,9,1 0,11} • 5 segments
  • 29. Computer Graphics Knot multiplicity • Quadruple knot at 5 • 4 segments
  • 30. Computer Graphics 10/10/2008 Lecture 5 30 Summary of B-Splines. • Functions that can be manipulated by a series of control points with C2 continuity and local control. • Don’t pass through their control points, although can be forced. • Uniform – Knots are equally spaced in t. • Non-Uniform – Knots are unequally spaced – Allows addition of extra control points anywhere in the set.