# Erasing Segments for 3D View

**URL:** <https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866>\
**Category:** Support\
**Created:** [June 6, 2023, 3:38pm UTC](https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866 "2023-06-06T15:38:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cy787](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cy787/32/66306_2.png) [@cy787](https://discourse.slicer.org/u/cy787)\
**Post date:** [June 6, 2023, 3:38pm UTC](https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866/1 "2023-06-06T15:38:37Z")

</div>

Hi all! I’m new to 3D Slicer and am trying to create a 3D rendering of a set of lungs and the airways. I tried to use the Fill Between Slices feature from the Segment Editor, but it created this:

 ![Screenshot 2023-06-06 101736](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/9/6957bdc23c2a278205094ad934bb13f93cf24b32.png)

Is there any way to delete the extra airways the tool created?

Thanks!

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [June 6, 2023, 7:07pm UTC](https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866/2 "2023-06-06T19:07:15Z")

</div>

A simple approach which looks like it would work for your data (as long as the airway you care about is one contiguous piece and it’s the biggest one) is to use the Islands tool and click “Keep largest island”.

---

<div class="post-metadata">

**Author:** ![cy787](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cy787/32/66306_2.png) [@cy787](https://discourse.slicer.org/u/cy787)\
**Post date:** [June 6, 2023, 7:09pm UTC](https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866/3 "2023-06-06T19:09:20Z")

</div>

Thanks! I’ll try that!

---

<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:** [June 6, 2023, 11:21pm UTC](https://discourse.slicer.org/t/erasing-segments-for-3d-view/29866/4 "2023-06-06T23:21:05Z")

</div>

“Fill between slices” connects even small speckles. If you want to prevent the effect from creating those long spikes from tiny segmentation errors, you can remove those speckles using Smoothing effect. You can also exclude the blue segments from “Fill between slices” effect by hiding the blue segment before initializing the effect.

Note that you can segment lung and airways fully automatically in Slicer using “LungCTAnalyzer” extension.
