14

I am not sure whether there is a .Net version of CGAL? The last time I check there is only one CGAL equivalent in garbage-collected language.

If would be tremendously helpful if we have CGAL.net.

P/S: I know I can use interop, but still, a full managed version would be better.

Community
  • 1
  • 1
Graviton
  • 81,782
  • 146
  • 424
  • 602
  • Depends on what you you need CGAL for - are you doing spatial operations. If so then you could look at .NETTopologySuite or SharpMap – TheSteve0 Feb 09 '10 at 06:06

5 Answers5

3

Looks like there is no .Net version for CGAL.

Graviton
  • 81,782
  • 146
  • 424
  • 602
3

There is the open possibility of a C# wrapper... although the SWIG project for CGAL does NOT include C# at the moment, it has been requested.

https://github.com/cgal/cgal-swig-bindings/issues/3

Are there plans to enable C# bindings for CGAL? Are there specific reasons for not having enabled it yet?
...

The main reason are time and resources. ... If someone experienced with C# wants to help, we probably can do this easily.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
2

There is a C# wrapper for a limited portion of CGAL: https://github.com/martindevans/CGAL_StraightSkeleton_Wrapper

CGAL_StraightSkeleton_Wrapper

A C# wrapper around CGAL for calculating straight skeletons of shapes. This is not and does not ever intend to be a general C# wrapper around CGAL!

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
0

It is a C++ library. Maybe it could be used through the .NET native code interop mechanisms?

Zee Prime
  • 29
  • 3
0

One thing you could theoretically try to do is to compile the C++ code as managed C++.
Not sure if it is practically easily doable though.

Dmytrii Nagirniak
  • 23,696
  • 13
  • 75
  • 130