Fitting 3D B-Spline (Nurbs) curves to a set of points in 3D space
19 次查看(过去 30 天)
显示 更早的评论
Hi Everyone,
I have a set of point coordinates in 3D space (xyz). I want to fit a Non-uniform rational basis spline (NURBS) curve to this set and get this curve's knots and cartesian points. I would be thankful if anyone can let me know how to do this in MATLAB or point me to the right direction to write such a code myself.
Many thanks in advance.
2 个评论
Nikhil Sapre
2022-4-20
I would suggest looking up how to import data into MATLAB, use arrays and plot and plot 3d commands. Provide us with your code and show that you made an effort and are running into issues.
回答(1 个)
Garmit Pant
2024-2-5
Hello Memo Remo
From what I gather, you have a 3D coordinates and you want to fit a NURBS curve to them. You are looking for methods in MATLAB to fit the spline to the data.
There are no in-built functions in MATLAB to fit NURBS curve. You can read about the construction of rational splines here:
You can also install the “NURBS Toolbox by D.M. Spink” from File Exchange. The toolbox contains multiple functions to work with NURBS curves. You can find the toolbox here:
I hope you find the above explanation and suggestions useful!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Splines 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!