closed_cubic_bsplin​e(P, varargin)

This is a function to draw a closed cubic B-Spline.

Vous suivez désormais cette soumission

This is a function to draw a closed cubic B-Spline, based on <Curves and Surfaces for Computer Graphics(2006)> by David Salomon (great book!), page 261 (closed cubic B-Spline curve).
usage:
closed_cubic_bspline(P,1) will compute and plot the closed B-Spline.
closed_cubic_bspline(P) will only compute the interpolated points.
notes:
In my program, I used a step of 1/100; if you need higher density, you could modify the value of nj (set to 100) on line 35.

Citation pour cette source

Di Zhu (2026). closed_cubic_bspline(P, varargin) (https://fr.mathworks.com/matlabcentral/fileexchange/56965-closed_cubic_bspline-p-varargin), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
3.0.0.0

Modified a mistake on error message about P's dimension.
added a comment of how to use the function when you have unorganized points instead of ordered points.

2.0.0.0

I'm working on the other B-splines and will upload later.

1.0.0.0