LICENSE 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Libigl is primarily licensed under MPL2
  2. - http://www.mozilla.org/MPL/2.0/
  3. - http://www.mozilla.org/MPL/2.0/FAQ.html
  4. All `.h` and `.cpp` _files_ directly in `include/igl` (but not necessarily in
  5. sub-directories) are subject only to the terms of the MPL2; they should not
  6. include any code that is covered by other/less-permissive licenses.
  7. The `.h` and `.cpp` _files_ in sub-directories of `include/igl` allow libigl to
  8. integrate with external third-party libraries (e.g., those in `external/`) and
  9. are subject to the MPL2, _**and**_ also the terms of licenses of the
  10. corresponding external library. The licenses used by these libraries fall under
  11. three categories:
  12. - common "free, non-copyleft licenses" (such as zlib, BSD, MIT, and public
  13. domain)
  14. - `include/igl/anttweakbar`
  15. - `include/igl/embree`
  16. - `include/igl/opengl`
  17. - `include/igl/opengl/glfw`
  18. - `include/igl/opengl2`
  19. - `include/igl/png`
  20. - `include/igl/viewer`
  21. - `include/igl/xml`
  22. - common "copyleft" licences (such as GPL, LGPL, and AGPL)
  23. - `include/igl/copyleft`
  24. - `include/igl/copyleft/cgal`
  25. - `include/igl/copyleft/comiso`
  26. - `include/igl/copyleft/cork`
  27. - `include/igl/copyleft/tetgen`
  28. - other "uncommon" licenses or commercial software
  29. - `include/igl/lim`
  30. - `include/igl/matlab`
  31. - `include/igl/mosek`
  32. - `include/igl/triangle`
  33. The Libigl code that interfaces with "copyleft" libraries is in
  34. `include/igl/copyleft`. Only include these headers if you are accept the
  35. licensing terms of the corresponding external library. For example, using
  36. `include/igl/copyleft/tetgen` requires that you accept the terms of the AGPLv3.
  37. One additional exception is include/igl/opengl2/tga.hpp (and tga.cpp), which is
  38. subject to the terms of the GNU GPLv2. No other files include these files, so
  39. it is safe to use all other files in include/igl/opengl2, even if you do not
  40. accept the terms of the GPLv2.
  41. // TODO: consider moving these two files to include/igl/copyleft/opengl2