什么是用垃圾收集语言进行计算几何(如 CGAL)的好库?
我需要一个库来处理项目中的计算几何,尤其是布尔运算,但几乎每个功能都很有用。我能找到的最好的库是 CGAL,但这是我在没有它的情况下会犹豫是否制作的项目垃圾收集。
您可以推荐哪些语言/库对?到目前为止,我最好的选择是将 CGAL 导入到 D 中。还有一个为 CGAL 进行 Python 绑定的项目,但它非常不完整。
I need a library to handle computational geometry in a project, especially boolean operations, but just about every feature is useful. The best library I can find for this is CGAL, but this is the sort of project I would hesitate to make without garbage collection.
What language/library pairs can you recommend? So far my best bet is importing CGAL into D. There is also a project for making Python bindings for CGAL, but it's very incomplete.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我仍然建议继续使用 Python 和现有的 Python 绑定。当您发现它不完整时,您还会发现它相当容易扩展 - Python 的 C API 的设计使得与外部库的集成相当容易(对于经验丰富的 C 程序员来说)。
I would still recommend to proceed with Python and the existing Python binding. When you find it's incomplete, you'll also find that it is fairly easy to extend - Python's C API is designed so that integrating with external libraries is fairly easy (for experienced C programmers).
也许你可以看看Shapely for python
http://pypi.python.org/pypi/Shapely/
对于 Java,我会使用 JTS
对于 .NET,我会使用 SharpMap 或 .NETTopologySuite
Perhaps you can look at Shapely for python
http://pypi.python.org/pypi/Shapely/
For Java I would use JTS
For .NET I would use SharpMap or .NETTopologySuite
CGAL-bindings 项目使用 SWIG 提供 CGAL 的绑定。到目前为止,目标语言是 Java 和 Python。 CGAL-bindings 项目是开源的,由两家法国公司支持/创立。
The CGAL-bindings project provides bindings for CGAL using SWIG. The targeted languages, so far, are Java and Python. The CGAL-bindings project is open source, and supported/founded by two french companies.
JTS 还可通过 IKVM 在 .NET 中使用。
JTS is also available in .NET via IKVM.
我刚刚发现了这个,即使它看起来是一个年轻的项目,它似乎也很有前途: https ://pyrr.readthedocs.org/en/latest/index.html#
它是基于 numpy 的!
I've just found this and it seems very promising even if it seems a young project: https://pyrr.readthedocs.org/en/latest/index.html#
and it is based on numpy!