fix for python 2.x

Former-commit-id: 6a7ea0cf06
This commit is contained in:
Daniele Panozzo
2017-07-02 23:34:13 +01:00
parent 0d47f9f7b9
commit b589dd64dc
+3 -3
View File
@@ -12,9 +12,9 @@ V = igl.eigen.MatrixXd()
F = igl.eigen.MatrixXi()
igl.readOFF(TUTORIAL_SHARED_PATH + "cube.off", V, F)
# Print the vertices and faces matrices
print("Vertices: \n", V, sep='')
print("Faces: \n", F, sep='')
# Print the vertices and faces matrices (commented out to make this file compatible with python 2.x and 3.x)
# print("Vertices: \n", V, sep='')
# print("Faces: \n", F, sep='')
# Save the mesh in OBJ format
igl.writeOBJ("cube.obj",V,F)