CGAL for .Net ( or C#)
Asked Answered
F

6

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.

Fiber answered 4/11, 2009 at 9:41 Comment(1)
Depends on what you you need CGAL for - are you doing spatial operations. If so then you could look at .NETTopologySuite or SharpMapMarivelmariya
F
3

Looks like there is no .Net version for CGAL.

Fiber answered 16/11, 2009 at 0:49 Comment(0)
C
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.

Cherri answered 26/1, 2018 at 17:0 Comment(0)
C
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!

Cherri answered 26/1, 2018 at 16:58 Comment(0)
S
0

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

Steading answered 4/11, 2009 at 9:43 Comment(1)
I know I can use interop, but still, a full managed version would be better.Fiber
S
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.

Siloum answered 4/11, 2009 at 10:6 Comment(2)
I tried this on other project.. no it didn't work that way because a lot of libraries are differentFiber
Maybe then it is time to start an .NET OSS project called NCGAL :)Siloum
A
0

CGALDotNet is a wrapper to the C++ library. It is limited in functionality and only supports Windows 64bit, but it is the best you can find right now.

The author stopped developing it mid 2022 though, so it's unlikely that it will evolve further.

Abney answered 10/1 at 14:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.