CGAL 与 VTK
CGAL 和 VTK 库有什么区别?两者都包含了许多标准几何算法。谁能列出一些应用程序域,其中一个域比另一个域更受青睐?
What is the difference between the CGAL and the VTK libraries? Both incorporate a lot of the standard geometric algorithms. Can anyone list some application domains where the one is preferred over the other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
VTK 主要针对可视化(前端)。出于方便起见,它包括一些计算几何函数(例如 Delaunay 三角剖分)。例如,它更适合查看 MRI 扫描、可视化大型数据集或将点云/网格从一种格式转换为另一种格式。
CGAL 的目标是计算几何(后端)。它将需要某种类型的前端(例如OpenGL、VTK)来查看结果。例如,它更适合分子生物学、天文学、建筑设计后端。
VTK is mostly targeted toward visualization (frontend). It includes some computational geometry functions out of convenience (e.g. Delaunay triangulation). It would be better suited for viewing MRI scans, visualizing large data sets, or converting point clouds / meshes from one format to another for example.
CGAL is targeted toward computational geometry (backend). It will require some type of frontend (e.g. OpenGL, VTK) to view the result. It would be better suited for molecular biology, astronomy, architectural design backends for example.
除其他差异外,还应提及许可证。 VTK在BSD下获得许可,可以免费在商业产品中使用。而 CGAL 则根据 GPLv3(大部分)和商业许可获得双重许可。要在商业产品中使用它,您应该购买商业许可证或根据 GPLv3 发布您的源代码(这对于商业产品来说不太可能)。
Among other differences license should be mentioned. VTK is licensed under BSD and could be used in commercial products for free. While CGAL is dual licensed under GPLv3 (most of it) and commercial license. And to use it in commercial products you should purchase commercial license or publish your sources under GPLv3 (unlikely way for commercial products).
VTK 非常适合科学可视化(将值绘制到具有给定色标的网格上),以及与之相关的所有工具(轴、过滤器等),它有很多用于网格处理和其他功能的工具paraview 提供了一个前端,如果你想尝试的话。它对纹理、动态网格、粒子和所有其他游戏/VR 相关技术没有好处。
VTK is good for scientific visualization (plotting values onto a mesh with a given colour scale), and all that goes with it (axes, filters and so on), it has quite a few tools for mesh processing and other things which paraview gives a front end to, if you want to experiment. It's no good for textures, dynamic meshes, particles and all manner of other game/VR related technologies.