# Volumetric mesh to Segmentation

**URL:** <https://discourse.slicer.org/t/volumetric-mesh-to-segmentation/5720>\
**Category:** Support\
**Created:** [February 10, 2019, 4:35pm UTC](https://discourse.slicer.org/t/volumetric-mesh-to-segmentation/5720 "2019-02-10T16:35:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamburgerfinger](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hamburgerfinger](https://discourse.slicer.org/u/Hamburgerfinger)\
**Post date:** [February 10, 2019, 4:35pm UTC](https://discourse.slicer.org/t/volumetric-mesh-to-segmentation/5720/1 "2019-02-10T16:35:43Z")

</div>

Hi! If I have a volumetric mesh, where separate regions of the mesh are defined by an associated scalar, can I import it directly into Segmentations? (i.e. with the different scalar-defined regions as different segments).

Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 10, 2019, 6:14pm UTC](https://discourse.slicer.org/t/volumetric-mesh-to-segmentation/5720/2 "2019-02-10T18:14:51Z")

</div>

There is no such feature yet. You can use a few VTK filters to do this conversion (probably 15-20 lines of Python code). Two possible approaches:

- get each sub-volume using threshold filter, extract surface, and then import the surface to segmentation
- use probe filter to convert the unstructured grid to image data and import that labelmap volume to segmentation
