# Get cell indices in exported mesh corresponding to each segment

**URL:** <https://discourse.slicer.org/t/get-cell-indices-in-exported-mesh-corresponding-to-each-segment/15437>\
**Category:** Support\
**Tags:** segmentation, segmentmesher\
**Created:** [January 10, 2021, 3:37pm UTC](https://discourse.slicer.org/t/get-cell-indices-in-exported-mesh-corresponding-to-each-segment/15437 "2021-01-10T15:37:48Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Elijah\_Alexson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/elijah_alexson/32/9488_2.png) [@Elijah\_Alexson](https://discourse.slicer.org/u/Elijah_Alexson)\
**Post date:** [January 11, 2021, 12:35pm UTC](https://discourse.slicer.org/t/get-cell-indices-in-exported-mesh-corresponding-to-each-segment/15437/7 "2021-01-11T12:35:07Z")

</div>

Sure, that’s the way I usually do, and I use Cleaver over Tetgen as well.

For the EP modelling I use [Chaste](http://www.cs.ox.ac.uk/chaste/). It uses Tetgen format, so after mesh generation (using Segment Mesher) I convert resulting |.vtk| file into |.node|, |.ele|, |.face| files using script provided with Chaste.

---

_[View the full topic](https://discourse.slicer.org/t/get-cell-indices-in-exported-mesh-corresponding-to-each-segment/15437)._
