Restructuring Python bindings, moved submodules and dependencies to own folders, added dependency checking for some tutorials, minor refactorings

Former-commit-id: 2214125878
This commit is contained in:
Sebastian Koch
2016-06-07 15:13:54 +02:00
parent 2a11d6243a
commit ad00bd397f
22 changed files with 198 additions and 63 deletions
+11 -6
View File
@@ -1,15 +1,20 @@
# Add the igl library to the modules search path
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
# Add the igl library to the modules search path
sys.path.insert(0, os.getcwd() + "/../")
import pyigl as igl
from shared import TUTORIAL_SHARED_PATH, check_dependencies
dependencies = ["viewer"]
check_dependencies(dependencies)
# Load a mesh in OFF format
V = igl.eigen.MatrixXd()
F = igl.eigen.MatrixXi()
igl.readOFF("../../tutorial/shared/beetle.off", V, F)
igl.readOFF(TUTORIAL_SHARED_PATH + "beetle.off", V, F)
# Plot the mesh
viewer = igl.viewer.Viewer();
viewer.data.set_mesh(V, F);
viewer.launch();
viewer = igl.viewer.Viewer()
viewer.data.set_mesh(V, F)
viewer.launch()