DELAUNAY Triangle lib error - CGAL

Feel free to ask any question here
Post Reply
tomsimmons
Posts: 1
Joined: Mon Jun 08, 2020 6:09 pm

DELAUNAY Triangle lib error - CGAL

Post by tomsimmons »

I originally wrote a test program using the Windows version of CloudCompare and amongst other steps it uses the DELAUNAY Best Fit function and worked fine.

I'm now moving the project to a Linux docker and have run into the following error...

[17:51:36] [ccMesh::Triangulate] Failed to construct Delaunay mesh (Triangle lib error: CGAL library not supported)

From the change log I find this...

2.6.3

* Triangulation:
- due to licensing issue with Triangle lib (incompatibility with GPL/LGPL) CGAL is now the prefered library for 2.5D
triangulation CCLib can now be compiled with CGAL support using COMPILE_CC_CORE_LIB_WITH_CGAL.
- please note that as CGAL 2D triangulation module is released under GPL license. A version of CCLib compiled with CGAL
support is no longer licensed under LGPL (GPL is "viral"). To keep CCLib original license scheme, you *must*
compile it without CGAL.
- as a positive side effect, micro benchmarks show that CGAL tends to offer better performances.

I'm afraid from that I can't figure out what the situation is. It sounds like to use DELAUNAY I'm going to need to compile CloudCompore with CGAL, but if I do it won't be GPL, which I assume is because CGAL isn't free?

If this is the case, then why does it work fine in the Window version 2.10.2 downloaded earlier this year?


Tom
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: DELAUNAY Triangle lib error - CGAL

Post by daniel »

The parts of CGAL we are relying to are 'Free'. The issue with the Triangle lib is that it has a strange license that doesn't allow companies to use it (?!). And the Debian guys didn't like that :(. This is why the decision was made to move from Triangle to CGAL.

On Windows we managed to compile it and include it in the official distribution. But on Linux, with the different packaging strategies it may not be as easy to link to CGAL? Or is it more difficult to compile? (I am not the Linux expert here ;).
Daniel, CloudCompare admin
Stubb
Posts: 3
Joined: Fri May 21, 2021 7:48 pm

Re: DELAUNAY Triangle lib error - CGAL

Post by Stubb »

I'm getting this error with CloudCompare 2.12 beta [macOS 64-bit] running on an M1 MacBook Pro when I try to compute a mesh.

Is this to be expected?

I installed 2.11.1 and triangulation works fine.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: DELAUNAY Triangle lib error - CGAL

Post by daniel »

I guess the 2.12 version was not compile with CGAL support!
Daniel, CloudCompare admin
Post Reply