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?


Hi Urban,

Welcome to ITK!

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


Hope this helps,