In [1]:
import polymesh.mesh as Mesh
import numpy as np
import os
In [2]:
os.listdir()
Out[2]:
In [3]:
mesh = Mesh.importObj('CubeWithGroups.obj')
In [4]:
mesh.face_groupIndex[5]
Out[4]:
In [5]:
if 1:
print('Test')
In [6]:
mesh.exportObj('CubeWithGroups_export.obj')
In [ ]: