finished pass on python tutorials

Former-commit-id: c79144f9df
This commit is contained in:
Daniele Panozzo
2015-10-05 21:26:43 +02:00
parent b976d8c144
commit 09494afb4b
3 changed files with 16 additions and 4 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
# Add the igl library to the modules search path
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
import igl
from math import atan2,pi,cos,sin
@@ -86,7 +90,7 @@ def key_down(viewer, key, modifier):
return False
# Load a mesh in OFF format
igl.readOFF("../tutorial/shared/bumpy.off", V, F);
igl.readOFF("../../tutorial/shared/bumpy.off", V, F);
# Threshold faces with high anisotropy
b = igl.eigen.MatrixXi([[0]])
+5 -1
View File
@@ -1,3 +1,7 @@
# Add the igl library to the modules search path
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
import igl
from math import pi
@@ -181,7 +185,7 @@ def key_down(viewer, key, modifier):
return False
# Load a mesh in OFF format
igl.readOFF("../tutorial/shared/3holes.off", V, F)
igl.readOFF("../../tutorial/shared/3holes.off", V, F)
# Compute face barycenters
igl.barycenter(V, F, B)
+6 -2
View File
@@ -1,3 +1,7 @@
# Add the igl library to the modules search path
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
import igl
import random
from math import cos,sin,pi
@@ -101,8 +105,8 @@ def key_down(viewer, key, modifier):
# Load a mesh in OBJ format
igl.readOBJ("../tutorial/shared/lilium.obj", V, F)
samples = readSamples("../tutorial/shared/lilium.samples.0.2")
igl.readOBJ("../../tutorial/shared/lilium.obj", V, F)
samples = readSamples("../../tutorial/shared/lilium.samples.0.2")
# Compute local basis for faces
igl.local_basis(V,F,B1,B2,B3)