first attempt at python wrappers

This commit is contained in:
Daniele Panozzo
2015-08-21 18:19:15 +02:00
parent 830960b4ce
commit 5a7d59e1eb
9 changed files with 690 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import sys, os
import numpy as np
import igl
# Load a mesh in OFF format
V = igl.eigen.MatrixXd()
F = igl.eigen.MatrixXi()
igl.readOFF("../tutorial/shared/cube.off", V, F)
# Print the vertices and faces matrices
print("Vertices: \n", V, sep='')
print("Faces: \n", F, sep='')
# Save the mesh in OBJ format
igl.writeOBJ("cube.obj",V,F)