Libigl is primarily licensed under MPL2
All .h and .cpp files directly in include/igl (but not necessarily in
sub-directories) are subject only to the terms of the MPL2; they should not
include any code that is covered by other/less-permissive licenses.
The .h and .cpp files in sub-directories of include/igl allow libigl to
integrate with external third-party libraries (e.g., those in external/) and
are subject to the MPL2, and also the terms of licenses of the
corresponding external library. The licenses used by these libraries fall under
three categories:
include/igl/anttweakbarinclude/igl/embreeinclude/igl/openglinclude/igl/opengl/glfwinclude/igl/opengl2include/igl/pnginclude/igl/viewerinclude/igl/xmlinclude/igl/copyleftinclude/igl/copyleft/cgalinclude/igl/copyleft/comisoinclude/igl/copyleft/corkinclude/igl/copyleft/tetgeninclude/igl/liminclude/igl/matlabinclude/igl/mosekinclude/igl/triangleThe Libigl code that interfaces with "copyleft" libraries is in
include/igl/copyleft. Only include these headers if you are accept the
licensing terms of the corresponding external library. For example, using
include/igl/copyleft/tetgen requires that you accept the terms of the AGPLv3.