1234567891011121314151617181920 |
- import sys, os
- sys.path.insert(0, os.getcwd() + "/../")
- import pyigl as igl
- from shared import TUTORIAL_SHARED_PATH
- V = igl.eigen.MatrixXd()
- F = igl.eigen.MatrixXi()
- igl.readOFF(TUTORIAL_SHARED_PATH + "cube.off", V, F)
- print("Vertices: \n", V, sep='')
- print("Faces: \n", F, sep='')
- igl.writeOBJ("cube.obj",V,F)
|