# Incorporate CGAL in 3D Slicer

**URL:** <https://discourse.slicer.org/t/incorporate-cgal-in-3d-slicer/25963>\
**Category:** Support\
**Created:** [October 29, 2022, 1:08pm UTC](https://discourse.slicer.org/t/incorporate-cgal-in-3d-slicer/25963 "2022-10-29T13:08:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 29, 2022, 1:54pm UTC](https://discourse.slicer.org/t/incorporate-cgal-in-3d-slicer/25963/2 "2022-10-29T13:54:51Z")

</div>

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.

---

_[View the full topic](https://discourse.slicer.org/t/incorporate-cgal-in-3d-slicer/25963)._
