Skip to content

Latest commit

 

History

History

3.4

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

B-Spline

drawBsplineBasisFuns

basis

drawBsplineBasisDerivs

Computes and draws b-spline basis functions and their derivatives.

drawBsplineBasisDerivs([0, 0, 0, 0, 1, 4, 6, 8, 8, 8, 8],3);

basis

drawBsplineBasisDerivs([0, 0, 0, 1, 2, 3, 4, 4, 5, 5, 5],2);

basis

drawBsplineCurve

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]);

basis

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]);

basis

drawBivariateBsplineBasisFuns

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);

basis

drawBsplineSurf

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

surf

drawBsplineSurfDemo2

surf

drawBsplineRing

Draws a ring using the implemented B-spline algorithms.

surf