0% found this document useful (0 votes)
4 views4 pages

B-Spline Example

The document provides an illustration of B-spline curve calculations, detailing the parametric equations and blending functions. It explains the recursive process for calculating blending functions of different orders using Cox-de Boor's formula, with examples of both periodic and nonperiodic knot values. The document concludes with a homework assignment to plot resulting curves based on the calculated blending functions.

Uploaded by

majvand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

B-Spline Example

The document provides an illustration of B-spline curve calculations, detailing the parametric equations and blending functions. It explains the recursive process for calculating blending functions of different orders using Cox-de Boor's formula, with examples of both periodic and nonperiodic knot values. The document concludes with a homework assignment to plot resulting curves based on the calculated blending functions.

Uploaded by

majvand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

An Illustration example of calculations of B-spline

Curve
Parameteric equation:

Blending function:

and

To illustrate how the parametric function is interpreted:


Let n = 3 and k = 2
Number of control points: = n+1 = 4; i.e. P0, P1, P2, P3.
This gives the equation:

(*)
Polynomial degree: = k-1 = 2 – 1 = 1
Range of u: 0  u < ((n + 1) – (k – 1))

Range of i for knot variables: 0  i < (n + k)

Knot values for each i (contains n+k+1 = 6 variables) can be


expressed either as period or nonperiodic.
If periodic: ti = i – k within the range (0  i  n+k)
t0 = 0 – 2 = -2; t1 = 1 – 2 = -1; …; t5 = 5 – 2 = 3

If nonperiodic:

 t0 = 0 (0 < 2); t1 = 0 (1 < 2)


 t2 = 1 (2 ≤ 2 ≤ 3); t3 = 2 (2 ≤ 3 ≤ 3)
 t4 = 3 (4 > 3); t5 = 3 (5 > 3)

Let’s use the nonperiodic variables for the following


calculations

Determining the blending functions recursively using Cox-de


Boor recursive formula)
i.e. find each Ni,k for i = 0, 1, 2, 3, 4;
k = 1, 2

When k = 1: N0,1; N1,1; N2,1; N3,1; N4,1


When k = 2: N0,2; N1,2; N2,2; N3,2; N4,2
Calculations of the blending function of order 1, Ni,1
(i.e. when k = 1 and i = 0, 1, 2, 3 and 4)

Calculations of the blending function of order 2, Ni,2,


(i.e. when k = 2 (recursively uses calculations of k = 1)
Note: In these calculations, any division by 0 is to be taken as 0.
Inserting in equation (*) given above

 P(u) = P0(1-u)N1,1(u) + P1 (uN1,1(u) + (2-u)N2,1(u))


+ P2((u-1)N2,1(u) + (3-u)N3,1(u)) + P3(u-2)N3,1(u) (**)

Homework: Try to insert the values of N1,1, N2,1 and N3,1 in


(**) and plot the resulting curves.

Recursive process:
To compute N0,2: We need to compute N0,1 and N1,1.
To compute N1,2: We need to compute N1,1 and N2,1.
….

Recursive progression pattern of effect Ni,1(u)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy