# Convert stl to mhd

**URL:** https://discourse.slicer.org/t/convert-stl-to-mhd/26064
**Category:** Support
**Created:** [November 4, 2022, 11:18am UTC](https://discourse.slicer.org/t/convert-stl-to-mhd/26064 "2022-11-04T11:18:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Trailer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/trailer/32/10730_2.png) [@Trailer](https://discourse.slicer.org/u/Trailer)
#### Post date: [November 4, 2022, 11:18am UTC](https://discourse.slicer.org/t/convert-stl-to-mhd/26064/1 "2022-11-04T11:18:15Z")

</div>

Hello,

I have an stl with 3 cylinders. I would like to be able to convert it to mhd format.

Is it possible to do this with Slicer? What steps are needed?

Would really appreciate the help!

I will leave the stl here: [WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free](https://we.tl/t-qM1jgJUcDY)

Best regards

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [November 4, 2022, 11:46am UTC](https://discourse.slicer.org/t/convert-stl-to-mhd/26064/2 "2022-11-04T11:46:24Z")

</div>

You can load the STL, then convert it to a segmentation node using the “Convert model to segmentation node” option in the Data module (as explained [here](https://discourse.slicer.org/t/how-to-edit-an-stl-file-using-segment-editor/17559/13) very recently as well), then convert the segmentation to labelmap, finally save the labelmap to mhd using the Save data button.

Note that without specifying a reference volume the resolution of the volume will be 1mm x 1mm x 1mm.

---

<div class="post-metadata">

### Author: ![Trailer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/trailer/32/10730_2.png) [@Trailer](https://discourse.slicer.org/u/Trailer)
#### Post date: [November 4, 2022, 12:07pm UTC](https://discourse.slicer.org/t/convert-stl-to-mhd/26064/3 "2022-11-04T12:07:38Z")

</div>

Is it possible to segregate the individual cylinder when exporting to mhd?

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [November 4, 2022, 12:47pm UTC](https://discourse.slicer.org/t/convert-stl-to-mhd/26064/4 "2022-11-04T12:47:14Z")

</div>

Can you please be more specific about what you want?
