浏览代码

fix for python 2.x

Former-commit-id: 6a7ea0cf0608a93e5115c689f976384d753f3329
Daniele Panozzo 8 年之前
父节点
当前提交
b589dd64dc
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      python/tutorial/101_FileIO.py

+ 3 - 3
python/tutorial/101_FileIO.py

@@ -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)