# Model slice intersection visibility - only on certain slice views

**URL:** <https://discourse.slicer.org/t/model-slice-intersection-visibility-only-on-certain-slice-views/3807>\
**Category:** Development\
**Created:** [August 16, 2018, 9:55pm UTC](https://discourse.slicer.org/t/model-slice-intersection-visibility-only-on-certain-slice-views/3807 "2018-08-16T21:55:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [August 16, 2018, 9:55pm UTC](https://discourse.slicer.org/t/model-slice-intersection-visibility-only-on-certain-slice-views/3807/1 "2018-08-16T21:55:18Z")

</div>

I have a 3D model that I would like to display as intersections on some 2D slice views, but hide it on another. I have a vtkMRMLModelNode called arteryModelNode:

> arteryModelDisplayNode = arteryModelNode.GetModelDisplayNode()  
> arteryModelDisplayNode.SetSliceIntersectionVisibility(True)

Below is an image. I want the intersection to show on the Red, Green, and Yellow slices, but not on the grey one “S1”. Is there a way to do this?

 ![intersection-question-arrow](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/6/f69e2f5f387bac1bc5a78654ece48530c22980d4.jpeg)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [August 17, 2018, 1:09pm UTC](https://discourse.slicer.org/t/model-slice-intersection-visibility-only-on-certain-slice-views/3807/2 "2018-08-17T13:09:15Z")

</div>

Hi @mschumaker -

Yes, if you explicitly set the view node ids where you want a displayable to appear it won’t be shown in the others.

> <https://github.com/Slicer/Slicer/blob/e776b54bf2d07a2d6addc32ed2b72a91040c621b/Libs/MRML/Core/vtkMRMLDisplayNode.h#L437-L475>

I don’t know if there’s a model slice intersection example, but here’s how it works for fiducials:

> <https://github.com/pieper/LandmarkRegistration/blob/master/LandmarkRegistration.py#L480-L518>

---

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [August 17, 2018, 4:24pm UTC](https://discourse.slicer.org/t/model-slice-intersection-visibility-only-on-certain-slice-views/3807/3 "2018-08-17T16:24:11Z")

</div>

Thank you! That’s exactly what I was looking for.
