# Wondering if I can create segmentation label from imported STL object?

**URL:** <https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [August 27, 2019, 8:57pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201 "2019-08-27T20:57:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shangcheng\_Wang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shangcheng_wang/32/4563_2.png) [@Shangcheng\_Wang](https://discourse.slicer.org/u/Shangcheng_Wang)\
**Post date:** [August 27, 2019, 8:57pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201/1 "2019-08-27T20:57:53Z")

</div>

Hi community,

I had a MRI data set and segmented bone models in STL format. Could I create segmentation label from these 3D models?

I also imported a cylindrical pin (create from CAD software) into slicer, and I am wondering I could map the pin into segmentation label. So I can see if the pin would damage tendon or muscle on its path.

Any idea or comment?

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:** [August 27, 2019, 11:45pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201/2 "2019-08-27T23:45:29Z")

</div>

You can convert a model to segmentation mode by right-clicking on it in Data module then choosing conversion to segmentation.

You can also import models to existing segmentation node using Segmentations module.

---

<div class="post-metadata">

**Author:** ![Shangcheng\_Wang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shangcheng_wang/32/4563_2.png) [@Shangcheng\_Wang](https://discourse.slicer.org/u/Shangcheng_Wang)\
**Post date:** [August 28, 2019, 3:05pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201/3 "2019-08-28T15:05:42Z")

</div>

Hi Andras,

I am able to convert model to segment node, but I can not see it in slice and 3D, see picture below.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/8/98746bf7ed1f7149c28fd3dbf2d01d1803188039.png)

Thanks  
Sam

---

<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:** [August 28, 2019, 5:39pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201/4 "2019-08-28T17:39:06Z")

</div>

Probably the STL file is defined in LPS coordinate system. Slicer assumes it is in RAS. Try transforming the model from LPS to RAS coordinate system by applying a transform as described here:

> [@DICOM and VTK file orientation Issue](https://discourse.slicer.org/t/dicom-and-vtk-file-orientation-issue/717/7):
>
> Most common issue is LPS/RAS coordinate system mismatch. So, may try to convert your data from LPS to RAS coordinate system by transforming it using Transforms module by a matrix that has [-1,-1,1,1] in the diagonal: [image]

---

<div class="post-metadata">

**Author:** ![Shangcheng\_Wang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shangcheng_wang/32/4563_2.png) [@Shangcheng\_Wang](https://discourse.slicer.org/u/Shangcheng_Wang)\
**Post date:** [August 28, 2019, 8:18pm UTC](https://discourse.slicer.org/t/wondering-if-i-can-create-segmentation-label-from-imported-stl-object/8201/5 "2019-08-28T20:18:43Z")

</div>

Hi, you are right. That solves my problem. Thanks very much.

Sam
