# Wrong lines of DICOM RT Structure Set for heart radiosurgery

**URL:** <https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752>\
**Category:** Support\
**Created:** [March 24, 2021, 7:24pm UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752 "2021-03-24T19:24:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody\_Xie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cody_xie/32/10261_2.png) [@Cody\_Xie](https://discourse.slicer.org/u/Cody_Xie)\
**Post date:** [March 24, 2021, 7:24pm UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752/1 "2021-03-24T19:24:11Z")

</div>

Dear all, there is a problem that has bothered me for a long time.

Operating system: Windows 10  
Slicer version: 4.11  
Expected behavior: Import a DICOM-RT Structure Set of a heart radiosurgery target, which has two regions (substrates). And the DICOM-RT SS file is generated by MATLAB, and in MATLAB it can be shown correctly.  
Actual behavior: I guess the screenshot is self explanatory. The heart radiosurgery target can be imported, but there are redundant straight lines (wrong lines) between the two regions (substrates). And it is also very clear that in the 3D view, the two regions (substrates) are linked by so many lines. May I know how I can delete these lines which I don’t need?

 ![Slicer - Substrate](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/e/ce46f23ee790238576d8b697fe5be826f2b67590.png)

Should you need more information, please inform me. Thank you so much in advance!

Best,  
Cody

---

<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:** [March 25, 2021, 8:47am UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752/2 "2021-03-25T08:47:59Z")

</div>

For very complex geometries, the triangulation to closed surface model sometimes fails. In these cases you can use the alternative “ribbon” models. There is a good description here:

> [@Clarification re RTSTRUCT display](https://discourse.slicer.org/t/clarification-re-rtstruct-display/15973/6):
>
> This is expected - you only see the contour in-plane if it is exactly in the slice view’s plane. This is exact match may be hard to achieve, that is why we added the ribbon representation, which is much better visible in slice views. Planar contours: Ribbon model: These features are somewhat hidden, but both planar contours and ribbon model are useful mainly for diagnostic purposes (when closed surface representation does not look good then you can check the original data…

also here

> [@RTstruct not showing contour](https://discourse.slicer.org/t/rtstruct-not-showing-contour/1926/12):
>
> The ribbon method yields a segment that looks nicer and that allows labelmaps to be created. The segment’s volume was calculated to be 0.209cc, which is about half of what you said it is in MIM. This makes complete sense if we consider interpolation (i.e. the aforementioned end-capping, which is performed in this scenario as well), instead of the raw ribbon method. I had to do one fix in the ribbon converter as well. It required at least two cells in the polydata, but I don’t know why so I decr…

---

<div class="post-metadata">

**Author:** ![Cody\_Xie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cody_xie/32/10261_2.png) [@Cody\_Xie](https://discourse.slicer.org/u/Cody_Xie)\
**Post date:** [March 25, 2021, 9:58am UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752/3 "2021-03-25T09:58:18Z")

</div>

Hi Csaba,

many thanks for your information and support! I will try this method.

---

<div class="post-metadata">

**Author:** ![Cody\_Xie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cody_xie/32/10261_2.png) [@Cody\_Xie](https://discourse.slicer.org/u/Cody_Xie)\
**Post date:** [March 28, 2021, 8:33pm UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752/4 "2021-03-28T20:33:03Z")

</div>

Dear Csaba,

I have tried the **ribbon model** process, it can improve the model display. However, these **wrong lines** still exist (please refer to the screenshots below).

Basically, my input DICOM-RT file contains **two curved surfaces** , and I only want to export these **two curved surfaces**. But it seems that on each slice (axial), the algorithm links the **two curves** into a **closed polygon** automatically. Would it be possible that you give me some support to **delete these wrong lines** when you are available? Any help from your side will be much appreciated.

 ![2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/4/74bde88c5683a79223747728efd3f364f40d73f4.jpeg)  
 ![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/2/d2cdbe867f389cd334f435dd18dfa1cb6d3b0520.jpeg)

PS: The reason why I want to import a DICOM-RTSS and export it by Slicer is that the radiosuegery planning system cannot read the DICOM-RT file I generated outside Slicer. And I found that the DICOM-RTSS can be read by the planning system if I import and export it by Slicer.

Thank you so much in advance!

---

<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:** [March 29, 2021, 9:17am UTC](https://discourse.slicer.org/t/wrong-lines-of-dicom-rt-structure-set-for-heart-radiosurgery/16752/5 "2021-03-29T09:17:39Z")

</div>

I think you are right and the extra lines are closing the open surface. Unfortunately SlicerRT does not support open surfaces currently, see this open ticket [Add support for open contours · Issue #45 · SlicerRt/SlicerRT · GitHub](https://github.com/SlicerRt/SlicerRT/issues/45)

It would not be hard to add, but there is no funding for SlicerRT at the moment, and our free time is very limited. Any contribution is welcome (programming or funding).
