Incorporate CGAL in 3D Slicer

Hi,
I need to incorporate CGAL in 3D Slicer for generating mesh. Any advise please?
Thank you.

CGAL free license is GPL (except some basic framework classes, which use permissive LGPL license). GPL is a non-permissive license: it restricts you how you use and distribute whatever you build with it. Even worse, it is a so-called “viral” license, which means that the restrictions do not apply only to the library itself but anything that it is linked to (it restricts even what you can do with the software that you develop yourself).

We put a lot of effort into making Slicer truly open, free, and restriction-free software, in every sense. Therefore, we avoid relying on libraries with such restrictive license as GPL.

VTK library covers much of the features that CGAL offers, and you should be able to find alternative restriction-free libraries for what is missing. If you are desperate to use CGAL and willing to accept some legal risks, you may build executable files from CGAL algorithms and execute those from Slicer, as this might not count as “linking” to CGAL. However, even if you are willing to accept the legal risks right now, your collaborators, or the company that you want to work with, or your future investors may not be that tolerant.

1 Like

Thank you Andras for your comprehensive answer. That makes complete sense.

3 posts were split to a new topic: Volumetric mesh generation for finite element analysis of spine