Added multiple tutorials
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import print_function
|
||||
|
||||
# Add the igl library to the modules search path
|
||||
import sys, os
|
||||
|
||||
sys.path.insert(0, os.getcwd() + "/../")
|
||||
|
||||
import pyigl as igl
|
||||
@@ -82,7 +83,7 @@ def update_visualization(viewer):
|
||||
igl.parula(S_vis, False, C_vis)
|
||||
|
||||
if overlay:
|
||||
append_mesh(C_vis, F_vis, V_vis, V, F, igl.eigen.MatrixXd([0.8, 0.8, 0.8]))
|
||||
append_mesh(C_vis, F_vis, V_vis, V, F, igl.eigen.MatrixXd([[0.8, 0.8, 0.8]]))
|
||||
|
||||
viewer.data.clear()
|
||||
viewer.data.set_mesh(V_vis, F_vis)
|
||||
@@ -110,7 +111,7 @@ print("Press [space] to toggle showing surface.")
|
||||
print("Press '.'/',' to push back/pull forward slicing plane.")
|
||||
|
||||
# Load mesh: (V,T) tet-mesh of convex hull, F contains original surface triangles
|
||||
igl.readMESH(TUTORIAL_SHARED_PATH + "bunny.mesh", V, T, F);
|
||||
igl.readMESH(TUTORIAL_SHARED_PATH + "bunny.mesh", V, T, F)
|
||||
|
||||
# Call to point_mesh_squared_distance to determine bounds
|
||||
sqrD = igl.eigen.MatrixXd()
|
||||
|
||||
Reference in New Issue
Block a user