Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 21: B Spline Curve

Similar presentations


Presentation on theme: "Lecture 21: B Spline Curve"β€” Presentation transcript:

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


Download ppt "Lecture 21: B Spline Curve"

Similar presentations


Ads by Google