Page 1 of 1

DELAUNAY Triangle lib error - CGAL

Posted: Mon Jun 08, 2020 6:46 pm
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

Re: DELAUNAY Triangle lib error - CGAL

Posted: Tue Jun 09, 2020 3:19 pm
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 ;).

Re: DELAUNAY Triangle lib error - CGAL

Posted: Fri Mar 18, 2022 1:51 pm
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.

Re: DELAUNAY Triangle lib error - CGAL

Posted: Sat Mar 19, 2022 11:31 am
by daniel
I guess the 2.12 version was not compile with CGAL support!