Download presentation
Presentation is loading. Please wait.
1
Lecture 21: B Spline Curve
CS552: Computer Graphics Lecture 21: B Spline Curve
2
Recap Bezier curve Properties Rendering De Casteljau's Algorithm
Subdividing Bezier Curve Continuity of curve πΆ 0 πΆ 1 πΆ 2
3
Objective After completing this lecture, students will be able to
Explain the issues with Bezier curve representation Explain the advantage of B spline curve Calculate the B-spline basis of different degrees and knot intervals
4
Bezier Curves: Issues No local control
Degree of curve is fixed by the number of control points
5
B Spline Each control point has a unique basis function
Local control is facilitated
6
B spline Curves The user supplies: the degree p, n+1 control points, and m+1 knot vectors Write the curve as: The functions Nip are the B-Spline basis functions B-Spline Animation
7
B Spline Basis The domain is subdivided by knots, and
Basis functions are not non-zero on the entire interval. Some knot spans may not exist (Repeat) Simple / Multiple Knots Uniform/ Non-Uniform Knots TheΒ i-th B-spline basis function of degreeΒ p π π 0 π‘ = 1, π‘ π β€π‘β€ π‘ π+1 ππ‘βπππ€ππ π B-Spline Basis Plots π π π π‘ = π‘β π‘ π π‘ π+π β π‘ π π π πβ1 π‘ + π‘ π+π+1 βπ‘ π‘ π+π+1 β π‘ π π π+1 πβ1 π‘ Cox-de Boor recursion formula
8
B Spline Basis: Observations 1
Non-zero domain of a basis function Basis functionΒ π΅π,π(π) is non-zero on [ππ, π π+π+π )
9
B Spline Basis: Observations 2
Influence of the basis function coefficients π‘ π‘ π π‘ π+1 π‘ π+π π‘ π+π+1 π‘ π+π β π‘ π π‘β π‘ π π‘ π+π+1 βπ‘ π‘ π+π+1 β π‘ π+1 Linear combination of two intervals, where both are linear in π’
10
Example Suppose the knot vector is U = { 0, 0.25, 0.5, 0.75, 1 }.
Hence,Β mΒ = 4 andΒ u0Β = 0,Β u1Β = 0.25,Β u2Β = 0.5,Β u3Β = 0.75 andΒ u4Β = 1.Β Degree Basis Function Range Equation 1 π 0 0 π 1 0 π 2 0 π 3 0 π 0 1 π 1 1 π 2 1
11
Thank you Next Lecture: B-Spline Curve
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.