# Mesh in Python

**URL:** https://discourse.itk.org/t/mesh-in-python/739
**Category:** Beginner Questions
**Created:** [March 6, 2018, 3:58pm UTC](https://discourse.itk.org/t/mesh-in-python/739 "2018-03-06T15:58:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Urban\_Simoncic](https://discourse.itk.org/letter_avatar_proxy/v4/letter/u/f04885/32.png) [@Urban\_Simoncic](https://discourse.itk.org/u/Urban_Simoncic)
#### Post date: [March 6, 2018, 3:58pm UTC](https://discourse.itk.org/t/mesh-in-python/739/1 "2018-03-06T15:58:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [March 6, 2018, 4:35pm UTC](https://discourse.itk.org/t/mesh-in-python/739/2 "2018-03-06T16:35:06Z")

</div>

Hi Urban,

Welcome to ITK!

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

```auto
itk.Mesh.GetTypes()

```

Hope this helps,  
Matt
