样条、B 样条和 NURBS C++ 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/327218/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Spline, B-Spline and NURBS C++ library
提问by CVertex
Does anyone know of a library or set of classes for splines - specifically b-splines and NURBS (optional).
有谁知道样条曲线的库或一组类 - 特别是 b 样条曲线和 NURBS(可选)。
A fast, efficient b-spline library would be so useful for me at the moment.
一个快速、高效的 b-spline 库目前对我来说非常有用。
采纳答案by goldenmean
1.) For B Splines - You should check Numerical Recipes in C (there is book for that and it is also available online for reference)
1.) 对于 B 样条 - 您应该检查 C 中的数值食谱(有书,也可以在线获取以供参考)
2.) Also check: sourceforge.net/projects/einspline/& this
2.) 还要检查:sourceforge.net/projects/einspline/& this
-AD
-广告
回答by Naaff
I know I'm answering months after this question was asked, but for others who might be searching for a similar answer, I'll point out openNURBS.
我知道我在问这个问题几个月后才回答,但对于可能正在寻找类似答案的其他人,我会指出openNURBS。
OpenNURBS also happens to be the library used in the modeling package Rhinoceros. It's a very complete library and it's worth consideration.
OpenNURBS 也恰好是建模包Rhinoceros 中使用的库。这是一个非常完整的库,值得考虑。
回答by goldenmean
This library may also be promising: http://libnurbs.sourceforge.net
这个库也可能很有前途:http: //libnurbs.sourceforge.net
回答by lib
Also ITK has a class for bspline itkBSplineScatteredDataPointSetToImageFilter see example at http://www.itk.org/Wiki/ITK/Examples/WishList/PointSet/BSplineScatteredDataPointSetToImageFilter( documentation at http://www.itk.org/Doxygen/html/classitk_1_1BSplineScatteredDataPointSetToImageFilter.htmlhttp://www.itk.org/Doxygen/html/classitk_1_1BSplineScatteredDataPointSetToImageFilter.html)
此外,ITK 有一个 bspline itkBSplineScatteredDataPointSetToImageFilter 类,请参见http://www.itk.org/Wiki/ITK/Examples/WishList/PointSet/BSplineScatteredDataPointSetToImageFilter(文档位于http://www.itk.org/Doxygen/html/classitk_1_1BSplineToImageFilterDataPointSet .html http://www.itk.org/Doxygen/html/classitk_1_1BSplineScatteredDataPointSetToImageFilter.html)
回答by Jeff
Eigen Splineis based on the famous (fast) C++ template library for linear algebra.
Eigen Spline基于著名的(快速)C++ 线性代数模板库。
回答by Foivos
An excellent library that is also supplemented by an online book is from MIT. Here is the (hyper)book http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/mathe.html
一个优秀的图书馆也有一本在线书籍作为补充来自麻省理工学院。这是(超级)书 http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/mathe.html
and in the bottom of the link you will find the related software, here: http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/software.html
在链接的底部你会找到相关的软件,在这里:http: //web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/software.html
GSL has a nice very basic b-spline implementation, but it does not include NURBS curves neither algorithms for inserting/removing knots, or several more advanced things. You can also find many useful algorithms that you can compile in your own language in the book, "The NURBS book", Piegl & Tiller, this one: http://www.amazon.com/NURBS-Book-Monographs-Visual-Communication/dp/3540615458
GSL 有一个很好的非常基本的 b 样条实现,但它不包括 NURBS 曲线、插入/删除结的算法或一些更高级的东西。您还可以在“The NURBS book”、Piegl & Tiller 一书中找到许多可以用您自己的语言编译的有用算法,这本:http://www.amazon.com/NURBS-Book-Monographs-Visual- 通讯/dp/3540615458
Numerical Recipes do not include support for b-splines.
数值配方不包括对 b 样条的支持。