@@ -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]])
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user