closed_cubic_bspline(P, varargin)
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.
Citar como
Di Zhu (2024). closed_cubic_bspline(P, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/56965-closed_cubic_bspline-p-varargin), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
3.0.0.0 | Modified a mistake on error message about P's dimension.
|
||
2.0.0.0 | I'm working on the other B-splines and will upload later. |
||
1.0.0.0 |