diff --git a/python/iglhelpers.py b/python/iglhelpers.py index c6c87351e..bf8d9c1b4 100644 --- a/python/iglhelpers.py +++ b/python/iglhelpers.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import numpy as np import scipy.sparse as sparse import pyigl as igl diff --git a/python/scripts/generate_bindings.py b/python/scripts/generate_bindings.py index 0ffc14fea..69a1e5b92 100755 --- a/python/scripts/generate_bindings.py +++ b/python/scripts/generate_bindings.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. #!/usr/bin/env python3 # # Syntax: generate_docstrings.py diff --git a/python/scripts/generate_docstrings.py b/python/scripts/generate_docstrings.py index d17faa233..e80a80e59 100755 --- a/python/scripts/generate_docstrings.py +++ b/python/scripts/generate_docstrings.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. #!/usr/bin/env python # # Syntax: generate_docstrings.py diff --git a/python/scripts/parser.py b/python/scripts/parser.py index 2a9231667..48648b52b 100644 --- a/python/scripts/parser.py +++ b/python/scripts/parser.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys import os from threading import Thread diff --git a/python/tcpviewer.py b/python/tcpviewer.py index 84159024d..ad1d84bef 100644 --- a/python/tcpviewer.py +++ b/python/tcpviewer.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import socket import threading import pyigl as igl diff --git a/python/tutorial/001_BasicTypes.py b/python/tutorial/001_BasicTypes.py index 0179c2060..f3a31069f 100644 --- a/python/tutorial/001_BasicTypes.py +++ b/python/tutorial/001_BasicTypes.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. from iglhelpers import * ############# Dense Matrix Types ############# diff --git a/python/tutorial/101_FileIO.py b/python/tutorial/101_FileIO.py index afa965ea4..72cc59eed 100644 --- a/python/tutorial/101_FileIO.py +++ b/python/tutorial/101_FileIO.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/102_DrawMesh.py b/python/tutorial/102_DrawMesh.py index 7517b8881..c60d44447 100755 --- a/python/tutorial/102_DrawMesh.py +++ b/python/tutorial/102_DrawMesh.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/102_DrawMesh_TCP.py b/python/tutorial/102_DrawMesh_TCP.py index c5a580ac5..bbdfaf837 100644 --- a/python/tutorial/102_DrawMesh_TCP.py +++ b/python/tutorial/102_DrawMesh_TCP.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os import time # Add the igl library to the modules search path diff --git a/python/tutorial/103_Events.py b/python/tutorial/103_Events.py index 747af105b..f9a11ed1c 100755 --- a/python/tutorial/103_Events.py +++ b/python/tutorial/103_Events.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/104_Colors.py b/python/tutorial/104_Colors.py index f7217e954..4c68df712 100755 --- a/python/tutorial/104_Colors.py +++ b/python/tutorial/104_Colors.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/105_Overlays.py b/python/tutorial/105_Overlays.py index e10d28b8a..f1b9db103 100755 --- a/python/tutorial/105_Overlays.py +++ b/python/tutorial/105_Overlays.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/106_ViewerMenu.py b/python/tutorial/106_ViewerMenu.py index 591a227cb..4c980c5fb 100644 --- a/python/tutorial/106_ViewerMenu.py +++ b/python/tutorial/106_ViewerMenu.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. # Add the igl library to the modules search path import sys, os sys.path.insert(0, os.getcwd() + "/../") diff --git a/python/tutorial/201_Normals.py b/python/tutorial/201_Normals.py index c6fcb073f..8ac2d60b9 100755 --- a/python/tutorial/201_Normals.py +++ b/python/tutorial/201_Normals.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/202_GaussianCurvature.py b/python/tutorial/202_GaussianCurvature.py index 9dd957bff..5f5b988ec 100644 --- a/python/tutorial/202_GaussianCurvature.py +++ b/python/tutorial/202_GaussianCurvature.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/203_CurvatureDirections.py b/python/tutorial/203_CurvatureDirections.py index 767f10edd..3288ba6fe 100755 --- a/python/tutorial/203_CurvatureDirections.py +++ b/python/tutorial/203_CurvatureDirections.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/204_Gradient.py b/python/tutorial/204_Gradient.py index 6fdfa23ae..9e05289d4 100755 --- a/python/tutorial/204_Gradient.py +++ b/python/tutorial/204_Gradient.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/205_Laplacian.py b/python/tutorial/205_Laplacian.py index ba4e58584..081cb6a10 100755 --- a/python/tutorial/205_Laplacian.py +++ b/python/tutorial/205_Laplacian.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os import math diff --git a/python/tutorial/301_Slice.py b/python/tutorial/301_Slice.py index 5d3774ea7..2fb6ddda4 100644 --- a/python/tutorial/301_Slice.py +++ b/python/tutorial/301_Slice.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/302_Sort.py b/python/tutorial/302_Sort.py index 3b9f46b41..9614e8a15 100644 --- a/python/tutorial/302_Sort.py +++ b/python/tutorial/302_Sort.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/303_LaplaceEquation.py b/python/tutorial/303_LaplaceEquation.py index 522787436..2814856bc 100644 --- a/python/tutorial/303_LaplaceEquation.py +++ b/python/tutorial/303_LaplaceEquation.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/304_LinearEqualityConstraints.py b/python/tutorial/304_LinearEqualityConstraints.py index 496783833..458ee0ca3 100644 --- a/python/tutorial/304_LinearEqualityConstraints.py +++ b/python/tutorial/304_LinearEqualityConstraints.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/305_QuadraticProgramming.py b/python/tutorial/305_QuadraticProgramming.py index 1d4e0b63a..b2fa020c7 100644 --- a/python/tutorial/305_QuadraticProgramming.py +++ b/python/tutorial/305_QuadraticProgramming.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/306_EigenDecomposition.py b/python/tutorial/306_EigenDecomposition.py index 1c89cbb56..72ccb7e5f 100644 --- a/python/tutorial/306_EigenDecomposition.py +++ b/python/tutorial/306_EigenDecomposition.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/401_BiharmonicDeformation.py b/python/tutorial/401_BiharmonicDeformation.py index a58e00c41..7b5d31a92 100755 --- a/python/tutorial/401_BiharmonicDeformation.py +++ b/python/tutorial/401_BiharmonicDeformation.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/402_PolyharmonicDeformation.py b/python/tutorial/402_PolyharmonicDeformation.py index d025541e9..20e684cf6 100755 --- a/python/tutorial/402_PolyharmonicDeformation.py +++ b/python/tutorial/402_PolyharmonicDeformation.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/403_BoundedBiharmonicWeights.py b/python/tutorial/403_BoundedBiharmonicWeights.py index 0c1df5d21..256ad397b 100755 --- a/python/tutorial/403_BoundedBiharmonicWeights.py +++ b/python/tutorial/403_BoundedBiharmonicWeights.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/404_DualQuaternionSkinning.py b/python/tutorial/404_DualQuaternionSkinning.py index 26029ad2d..879a14e59 100755 --- a/python/tutorial/404_DualQuaternionSkinning.py +++ b/python/tutorial/404_DualQuaternionSkinning.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os from math import sin, cos, pi diff --git a/python/tutorial/405_AsRigidAsPossible.py b/python/tutorial/405_AsRigidAsPossible.py index 44c7896dd..0f1675949 100755 --- a/python/tutorial/405_AsRigidAsPossible.py +++ b/python/tutorial/405_AsRigidAsPossible.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os from math import sin, cos, pi diff --git a/python/tutorial/501_HarmonicParam.py b/python/tutorial/501_HarmonicParam.py index f2277124a..3c2ec3e81 100755 --- a/python/tutorial/501_HarmonicParam.py +++ b/python/tutorial/501_HarmonicParam.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/502_LSCMParam.py b/python/tutorial/502_LSCMParam.py index 38d81f681..d4e0e8495 100755 --- a/python/tutorial/502_LSCMParam.py +++ b/python/tutorial/502_LSCMParam.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/503_ARAPParam.py b/python/tutorial/503_ARAPParam.py index 611cd161d..61de6cbe3 100755 --- a/python/tutorial/503_ARAPParam.py +++ b/python/tutorial/503_ARAPParam.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/504_NRosyDesign.py b/python/tutorial/504_NRosyDesign.py index 8287bdbbe..2c9b5e380 100755 --- a/python/tutorial/504_NRosyDesign.py +++ b/python/tutorial/504_NRosyDesign.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os from math import atan2, pi, cos, sin diff --git a/python/tutorial/505_MIQ.py b/python/tutorial/505_MIQ.py index 3a1013424..929654566 100755 --- a/python/tutorial/505_MIQ.py +++ b/python/tutorial/505_MIQ.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os from math import pi diff --git a/python/tutorial/507_PolyVectorField.py b/python/tutorial/507_PolyVectorField.py index 7725fd9d3..eb79ee845 100755 --- a/python/tutorial/507_PolyVectorField.py +++ b/python/tutorial/507_PolyVectorField.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os import random from math import cos,sin,pi diff --git a/python/tutorial/509_Planarization.py b/python/tutorial/509_Planarization.py index 6cb75af18..28518f10a 100755 --- a/python/tutorial/509_Planarization.py +++ b/python/tutorial/509_Planarization.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/604_Triangle.py b/python/tutorial/604_Triangle.py index 82d4db721..d8fa239d2 100755 --- a/python/tutorial/604_Triangle.py +++ b/python/tutorial/604_Triangle.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/605_Tetgen.py b/python/tutorial/605_Tetgen.py index 7715b80b6..219f314a8 100755 --- a/python/tutorial/605_Tetgen.py +++ b/python/tutorial/605_Tetgen.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/606_AmbientOcclusion.py b/python/tutorial/606_AmbientOcclusion.py index 5183b19df..f54675b46 100755 --- a/python/tutorial/606_AmbientOcclusion.py +++ b/python/tutorial/606_AmbientOcclusion.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/607_ScreenCapture.py b/python/tutorial/607_ScreenCapture.py index 8b106ca8c..0d6378cda 100755 --- a/python/tutorial/607_ScreenCapture.py +++ b/python/tutorial/607_ScreenCapture.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/609_Boolean.py b/python/tutorial/609_Boolean.py index 891f81711..375389171 100755 --- a/python/tutorial/609_Boolean.py +++ b/python/tutorial/609_Boolean.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/701_Statistics.py b/python/tutorial/701_Statistics.py index 01d0d1656..401cc8c8e 100755 --- a/python/tutorial/701_Statistics.py +++ b/python/tutorial/701_Statistics.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/702_WindingNumber.py b/python/tutorial/702_WindingNumber.py index 2de16e664..465f0b131 100755 --- a/python/tutorial/702_WindingNumber.py +++ b/python/tutorial/702_WindingNumber.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/704_SignedDistance.py b/python/tutorial/704_SignedDistance.py index 47d4a04fb..1f30ccff3 100644 --- a/python/tutorial/704_SignedDistance.py +++ b/python/tutorial/704_SignedDistance.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os import math diff --git a/python/tutorial/705_MarchingCubes.py b/python/tutorial/705_MarchingCubes.py index 8ce6305b4..b38f3f451 100755 --- a/python/tutorial/705_MarchingCubes.py +++ b/python/tutorial/705_MarchingCubes.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/706_FacetOrientation.py b/python/tutorial/706_FacetOrientation.py index 6543e6c62..6219dddb0 100755 --- a/python/tutorial/706_FacetOrientation.py +++ b/python/tutorial/706_FacetOrientation.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/707_SweptVolume.py b/python/tutorial/707_SweptVolume.py index e15252911..afc2041a1 100755 --- a/python/tutorial/707_SweptVolume.py +++ b/python/tutorial/707_SweptVolume.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/708_Picking.py b/python/tutorial/708_Picking.py index 19b1e3f72..419de88e8 100755 --- a/python/tutorial/708_Picking.py +++ b/python/tutorial/708_Picking.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os # Add the igl library to the modules search path diff --git a/python/tutorial/709_VectorFieldVisualizer.py b/python/tutorial/709_VectorFieldVisualizer.py index c77605a6f..ad809b8ef 100644 --- a/python/tutorial/709_VectorFieldVisualizer.py +++ b/python/tutorial/709_VectorFieldVisualizer.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import sys, os import numpy as np diff --git a/python/tutorial/shared.py b/python/tutorial/shared.py index 1adf98024..86b5596e2 100644 --- a/python/tutorial/shared.py +++ b/python/tutorial/shared.py @@ -1,3 +1,10 @@ +# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. import pyigl as igl import sys import os diff --git a/scripts/license.py b/scripts/license.py index 3a0e55fc2..8be11b980 100644 --- a/scripts/license.py +++ b/scripts/license.py @@ -36,20 +36,20 @@ def recursive_traversal(dir, oldcopyright, copyright): if (os.path.isdir(fullfn)): recursive_traversal(fullfn, oldcopyright, copyright) else: - if (fullfn.endswith(".h")): + if (fullfn.endswith(".py")): update_source(fullfn, oldcopyright, copyright) #oldcright = file("oldcr.txt","r+").read() #cright = file("copyrightText.txt","r+").read() oldcright = None -cright = """// This file is part of libigl, a simple c++ geometry processing library. -// -// Copyright (C) 2017 Sebastian Koch and Daniele Panozzo -// -// This Source Code Form is subject to the terms of the Mozilla Public License -// v. 2.0. If a copy of the MPL was not distributed with this file, You can -// obtain one at http://mozilla.org/MPL/2.0/. +cright = """# This file is part of libigl, a simple c++ geometry processing library. +# +# Copyright (C) 2017 Sebastian Koch and Daniele Panozzo +# +# This Source Code Form is subject to the terms of the Mozilla Public License +# v. 2.0. If a copy of the MPL was not distributed with this file, You can +# obtain one at http://mozilla.org/MPL/2.0/. """ recursive_traversal(".", oldcright, cright) exit()