Computes and draws b-spline basis functions and their derivatives.
drawBsplineBasisDerivs([0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 8],3);
drawBsplineBasisDerivs([0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 5],2);
Draws a b-spline curve.
drawBsplineCurve(5, 2, [0, 0, 0, 0.25, 0.5, 0.75, 1, 1, 1], [0, 0; 1, 1; 2, 0.5; 3, 0.5; 0.5, 1.5; 1.5, 0]);
drawBsplineCurve(5, 2, [0, 0, 0, 0.25, 0.5, 0.75, 1, 1, 1], [0, 0, 0; 1, 1, 1; 2, 0.5, 0; 3, 0.5, 0; 0.5, 1.5, 0; 1.5, 0, 1]);
Draws bivariate basis functions.
drawBivariateBsplineBasisFuns([0, 0, 0, 0.5, 1, 1, 1], 3, 2, [0, 0, 0, 0.5, 1, 1, 1], 3, 2);
Draws a b-spline surface. In the first demo, the basis functions are linear in both directions. In the second example, the same surface is drawn, but basis functions are quadratic in one direction.
drawBsplineSurfDemo
drawBsplineSurfDemo2
Draws a ring using the implemented B-spline algorithms.