moved python tutorials in a folder, doing a pass to make them python 3 compatible

This commit is contained in:
Daniele Panozzo
2015-10-05 15:30:39 +02:00
parent 5e7a2ae3da
commit 3ae8d0c1a9
27 changed files with 117 additions and 30 deletions
+18
View File
@@ -0,0 +1,18 @@
from __future__ import print_function
# Add the igl library to the modules search path
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
import igl
# Load a mesh in OFF format
V = igl.eigen.MatrixXd()
F = igl.eigen.MatrixXi()
igl.readOFF("../../tutorial/shared/cube.off", V, F)
# Print the vertices and faces matrices
print("Vertices: \n", V, sep='')
print("Faces: \n", F, sep='')
# Save the mesh in OBJ format
igl.writeOBJ("cube.obj",V,F)