# Logical operators intersect function causes selected segment to disappear

**URL:** <https://discourse.slicer.org/t/logical-operators-intersect-function-causes-selected-segment-to-disappear/28896>\
**Category:** Support\
**Created:** [April 14, 2023, 1:49am UTC](https://discourse.slicer.org/t/logical-operators-intersect-function-causes-selected-segment-to-disappear/28896 "2023-04-14T01:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreya\_Kashyap](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shreya_kashyap/32/65606_2.png) [@Shreya\_Kashyap](https://discourse.slicer.org/u/Shreya_Kashyap)\
**Post date:** [April 14, 2023, 1:49am UTC](https://discourse.slicer.org/t/logical-operators-intersect-function-causes-selected-segment-to-disappear/28896/1 "2023-04-14T01:49:43Z")

</div>

Hi everyone,  
I am trying to use the Intersect function to remove portions of segment1 (yellow) that are not inside segment2 (green). When I click intersect all of segment1 disappears, even portions that should be in segment2. What is going on?  
Before intersect:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/e/7e0a361439d11272f9c18c8e32da3d4b72319a49.png)  
With Segment2 removed (still no intersect):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/4/b4b7de64644a5cc55b4f8fd1c7ca3dcf2fdc0a04.png)  
After intersect:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/7/871eaa045b743752b341d183823d0e4816fc5bf5.png)  
with segment 1 removed:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/e/ee5b2459ee97c7367f6b59dbf596a4b8f5c2cf69.png)

Thanks,  
Shreya

---

<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:** [April 15, 2023, 3:08am UTC](https://discourse.slicer.org/t/logical-operators-intersect-function-causes-selected-segment-to-disappear/28896/2 "2023-04-15T03:08:35Z")

</div>

Can you provide a sample data set that we can use to reproduce the behavior that you find unexpected?
