What's a good library to do computational geometry (like CGAL) in a garbage-collected language?

こ雲淡風輕ζ 提交于 2019-12-18 12:59:12

问题


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.


回答1:


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).




回答2:


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




回答3:


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.




回答4:


JTS is also available in .NET via IKVM.




回答5:


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#

Pyrr is a Python mathematical library.

and it is based on numpy!



来源:https://stackoverflow.com/questions/1517192/whats-a-good-library-to-do-computational-geometry-like-cgal-in-a-garbage-coll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!