In [1]:
import polymesh.mesh as Mesh
import numpy as np
import os

In [2]:
os.listdir()


Out[2]:
['BrAa_40m_hull.mgf',
 'wetMesh.obj',
 'Export_mgf_strips.ipynb',
 'BrAa_40m_hull_side_offset.obj',
 'hullModel.obj',
 'CubeWithGroups_export.obj',
 'HydrostaticCalculations.ipynb',
 'BrAa_40m_hull_centered.obj',
 '.ipynb_checkpoints',
 'KCS.obj',
 'GroupData Testing.ipynb',
 'CubeWithGroups.obj']

In [3]:
mesh = Mesh.importObj('CubeWithGroups.obj')

In [4]:
mesh.face_groupIndex[5]


Out[4]:
1

In [5]:
if 1:
    print('Test')


Test

In [6]:
mesh.exportObj('CubeWithGroups_export.obj')

In [ ]: