Mesh in Python

I want to work with itk.Mesh in python, so I tried to instantiate mesh type:
MeshType = itk.Mesh[itk.F, 3]

However, I got the error:
KeyError: ‘itkTemplate : No template (, 3) for the itk::Mesh class’

I use my build of ITK and I have built float type. Do I need something else to build in orted to use Mesh in Python?

Urban

Hi Urban,

Welcome to ITK!

The meshes are parameterized in a different way than images. To find the available types, call

itk.Mesh.GetTypes()

Hope this helps,
Matt