# Exporting stl of ROI of segmented ribcage

**URL:** <https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838>\
**Category:** Support\
**Created:** [March 12, 2024, 1:27am UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838 "2024-03-12T01:27:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marthe](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Marthe](https://discourse.slicer.org/u/Marthe)\
**Post date:** [March 12, 2024, 1:27am UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838/1 "2024-03-12T01:27:15Z")

</div>

Dear all

After segmenting the ribcage from the CTACardio data, I wondered how I can export an STL file only containing the part of the 3D ribcage structure indicated by the ROI? See attached screenshot to understand my question. Thank you in advance!

 ![Schermopname (329)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/8/e8950844d981720494433d977c172f0c3f1702ca.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 12, 2024, 2:52am UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838/2 "2024-03-12T02:52:50Z")

</div>

You can use the Dynamic Modeler module to crop your segmentation model with this ROI, and then export the resultant model as an STL by right clicking and choosing “Export File” in the Data module.

---

<div class="post-metadata">

**Author:** ![Marthe](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Marthe](https://discourse.slicer.org/u/Marthe)\
**Post date:** [March 12, 2024, 8:44am UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838/3 "2024-03-12T08:44:35Z")

</div>

Thank you very much for your reply! I tried doing that, however, I cannot input my segmented ribcage in order to do the ROI cut as can be seen from my screenshot. Did I do something wrong?

Kind regards

 ![Schermopname (330)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/f/bfced877818485fad471e8c8d1baae76f63c0d8b.png)

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [March 12, 2024, 2:43pm UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838/4 "2024-03-12T14:43:12Z")

</div>

You’ll need to export your segmentation to a model node.

---

<div class="post-metadata">

**Author:** ![Marthe](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Marthe](https://discourse.slicer.org/u/Marthe)\
**Post date:** [March 13, 2024, 9:54am UTC](https://discourse.slicer.org/t/exporting-stl-of-roi-of-segmented-ribcage/34838/5 "2024-03-13T09:54:45Z")

</div>

Thank you very much!!
