# Showing 2D contour (slice intersection) of segmentation in 3D viewport

**URL:** <https://discourse.slicer.org/t/showing-2d-contour-slice-intersection-of-segmentation-in-3d-viewport/44598>\
**Category:** Support\
**Created:** [September 26, 2025, 3:54pm UTC](https://discourse.slicer.org/t/showing-2d-contour-slice-intersection-of-segmentation-in-3d-viewport/44598 "2025-09-26T15:54:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hfri](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hfri](https://discourse.slicer.org/u/hfri)\
**Post date:** [September 26, 2025, 3:54pm UTC](https://discourse.slicer.org/t/showing-2d-contour-slice-intersection-of-segmentation-in-3d-viewport/44598/1 "2025-09-26T15:54:42Z")

</div>

Dear forum,

I would like to display my segmentations as 2D outlines in the 3D view port. I have the NIfTI segmentations, but currently, I can only show the outlines in the 2D views (red, yellow, green). In the 3D viewport, I can only display the segmentations as solid 3D objects, not as outlines.

Any help is very appreciated!

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 26, 2025, 4:32pm UTC](https://discourse.slicer.org/t/showing-2d-contour-slice-intersection-of-segmentation-in-3d-viewport/44598/2 "2025-09-26T16:32:33Z")

</div>

If your NifTI segmentation can be identified as a vtkMRMLSegmentationNode, you may use [this](https://gitlab.com/chir-set/Tools7/-/tree/master/Silhouette/) module to generate the outline as a Model visible in the first 3D view.

---

<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:** [September 26, 2025, 7:26pm UTC](https://discourse.slicer.org/t/showing-2d-contour-slice-intersection-of-segmentation-in-3d-viewport/44598/3 "2025-09-26T19:26:26Z")

</div>

You can convert the segmentation to labelmap and then display the labelmap as coloring or contour in the slice that is visible also in 3D.

This need has not come up often enough to justify implementing it for segmentations. Usually people showing the segmentation in 3D as a 3D object (often with some transparency), not just the intersection. Can you tell a bit about your workflow and why do you need to display the segmentation just as a contour?
