Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 22: B Spline Curve Properties

Similar presentations


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

1 Lecture 22: B Spline Curve Properties
CS552: Computer Graphics Lecture 22: B Spline Curve Properties

2 Recap B Spline Degree Knots Local control B Spline Basis functions
Interval Derivative

3 Objective After completing this lecture, students will be able to
Derive mathematical expressions for different properties of the B-Spline curve Solve problems related to B Splines

4 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 𝑁 𝑖 0 𝑑 = 1, 𝑑 𝑖 ≀𝑑≀ 𝑑 𝑖+1 π‘‚π‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’ Cox-de Boor recursion formula 𝑁 𝑖 𝑝 𝑑 = π‘‘βˆ’ 𝑑 𝑖 𝑑 𝑖+𝑝 βˆ’ 𝑑 𝑖 𝑁 𝑖 π‘βˆ’1 𝑑 + 𝑑 𝑖+𝑝+1 βˆ’π‘‘ 𝑑 𝑖+𝑝+1 βˆ’ 𝑑 𝑖 𝑁 𝑖+1 π‘βˆ’1 𝑑

5 Derivatives of B Spline Curve
𝑑 𝑑𝑑 𝑃 𝑑 = 𝑖=0 𝑛 𝑃 𝑖 𝑁 𝑖 𝑝 (𝑑)β€² = 𝑝 𝑑 𝑖+𝑝 βˆ’ 𝑑 𝑖 𝑁 𝑖 π‘βˆ’1 𝑑 βˆ’ 𝑝 𝑑 𝑖+𝑝+1 βˆ’ 𝑑 𝑖+1 𝑁 𝑖+1 π‘βˆ’1 𝑑 The derivative of each of these basis functions can be computed as follows: Plugging these derivatives back 𝑑 𝑑𝑑 𝑃 𝑑 = 𝑖=0 π‘›βˆ’1 𝑁 𝑖+1 π‘βˆ’1 𝑑 𝑄 𝑖 π‘€β„Žπ‘’π‘Ÿπ‘’, 𝑄 𝑖 = 𝑝 𝑑 𝑖+𝑝+1 βˆ’ 𝑑 𝑖+1 𝑃 𝑖+1 βˆ’ 𝑃 𝑖 Derivative of a B-spline curve is another B-spline curve of degree 𝒑 βˆ’ 𝟏 on the original knot vector with a new set of 𝒏 control points, 𝑸 𝟎 , 𝑸 𝟏 ,…, 𝑸 π’βˆ’πŸ

6 Properties of B-Spline
N i p (𝑑) is a degree 𝑝 polynomial in 𝑑 Non-negativity: For all 𝑖, 𝑝 and 𝑑,Β  𝑁 𝑖 𝑝 (𝑑) is non-negative Local Support:Β  𝑁 𝑖 𝑝 (𝑑) is a non-zero polynomial on 𝑑𝑖,𝑑𝑖+𝑝+1 On any span 𝑑𝑖,𝑑𝑖+𝑝+1 ,Β at most 𝒑+𝟏 degree 𝒑 basis functions are non-zero 𝑁 π‘–βˆ’π‘ 𝑝 (𝑑) , 𝑁 π‘–βˆ’π‘+1 𝑝 (𝑑), …, 𝑁 𝑖 𝑝 (𝑑) Partition of Unity The sum of all non-zero degree 𝑝 basis functions on span [𝑑𝑖, 𝑑𝑖+𝑝+1) is unity, i.e. π‘˜=0 𝑝 𝑁 π‘–βˆ’π‘˜ 𝑝 =1

7 Properties of B-Spline
m = n+p+1 Basis function 𝑁 𝑖 𝑝 (𝑑) is a composite curve of degree 𝑝 polynomials with joining points at knots in [𝑑𝑖, 𝑑𝑖+𝑝+1 ) At a knot of multiplicity π‘˜, basis function 𝑁 𝑖 𝑝 (𝑑) is C pβˆ’π‘˜ continuous. Convex hull property

8 Impact of Multiple Knots
Significant impact on the computation of basis functionsΒ  Counting properties Each knot of multiplicityΒ π’Œ reduces at mostΒ π’Œβˆ’πŸ basis functions' non-zero domain.Β 

9 Impact of Multiple Knots
At each internal knot of multiplicityΒ k, the number of non-zero basis functions is at mostΒ p - kΒ + 1, whereΒ pΒ is the degree of the basis functions.Β 

10 B Spline Moving Control Points
Local control scheme p=4, n=12, m=17 Span [ 𝑑 4 , 𝑑 5 ) [ 𝑑 5 , 𝑑 6 ) [ 𝑑 6 , 𝑑 7 ) [ 𝑑 7 , 𝑑 8 ) [ 𝑑 8 , 𝑑 9 ) [ 𝑑 9 , 𝑑 10 ) [ 𝑑 10 , 𝑑 11 ) [ 𝑑 11 , 𝑑 12 ) [ 𝑑 12 , 𝑑 13 ) Segment 1 2 3 4 5 6 7 8 9

11 B-spline Curves: Knot insertion
Adding a new knot into the existing knot vectorΒ  Without changing the shape of the curve. m = n + p + 1 Inserting a new knot causes a new control point to be added Some existing control points are removed and replaced with new ones by corner cutting.

12 Sub-division Follows exactly the same procedure for subdividing a BΓ©zier curve.

13 Thank you Next Lecture: Surface


Download ppt "Lecture 22: B Spline Curve Properties"

Similar presentations


Ads by Google