python compilation fixes

This commit is contained in:
Daniele Panozzo
2018-02-04 20:11:03 -05:00
parent dc226a5810
commit 4b9501ad39
8 changed files with 104 additions and 105 deletions
+3 -4
View File
@@ -13,16 +13,15 @@ import pyigl as igl
from shared import TUTORIAL_SHARED_PATH, check_dependencies
dependencies = ["opengl_glfw"]
dependencies = ["glfw"]
check_dependencies(dependencies)
# Load a mesh in OFF format
V = igl.eigen.MatrixXd()
F = igl.eigen.MatrixXi()
igl.readOFF(TUTORIAL_SHARED_PATH + "beetle.off", V, F)
# Plot the mesh
viewer = igl.viewer.Viewer()
viewer.data.set_mesh(V, F)
viewer = igl.glfw.Viewer()
viewer.data().set_mesh(V, F)
viewer.launch()