Defining a B-spline for a given set of control points
In the next section, we will look at how to solve B-splines given some controlled data.
Getting ready
We need to follow some instructions and install the prerequisites.
How to do it…
- Univariate the spline in the B-spline basis
- Execute the following: S(x)=∑j=0n−1cjBj,k;t(x)S(x)=∑j=0n−1cjBj,k;t(x)
- Where it's Bj,k;tBj,k;t are B-spline basis functions of degree k and knots t
- We can use the following parameters:
Parameters |
|
How it works ...
Here, we construct a quadratic spline function on the base interval 2 <= x <= 4
and compare it with...