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

5

18

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.

Diathesis answered 4/10, 2009 at 19:33 Comment(0)
S
7

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

Summersummerhouse answered 4/10, 2009 at 19:45 Comment(1)
Yep, and look into one of the C++ bindings generators (which binds C++ code to python), such as SIP.Shackleton
H
7

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

Hoax answered 9/2, 2010 at 5:50 Comment(0)
L
1

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.

Lemcke answered 31/12, 2013 at 11:5 Comment(0)
I
0

JTS is also available in .NET via IKVM.

Injun answered 22/3, 2010 at 2:46 Comment(0)
A
0

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!

Asti answered 7/5, 2013 at 16:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.