# Cannot set slice intersection thickness on display node

**URL:** https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130
**Category:** Support
**Created:** [March 13, 2019, 12:09pm UTC](https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130 "2019-03-13T12:09:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![michalikthomas](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@michalikthomas](https://discourse.slicer.org/u/michalikthomas)
#### Post date: [March 13, 2019, 12:09pm UTC](https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130/1 "2019-03-13T12:09:57Z")

</div>

Hello,

I am trying to set slice intersection thickness of simple poly data line.

```
modelsLogic = slicer.modules.models.logic()
model = modelsLogic.AddModel(track)
model.GetDisplayNode().SetSliceIntersectionVisibility(True)
model.GetDisplayNode().SetSliceIntersectionThickness(10)

```

In the slice view, I can see line intersection with a slice as a small square (probably just one pixel). I expected the function **SetSliceIntersectionThickness()** will set this intersection “indicator” larger.

The same goal I tried to achieve via Models module GUI by setting **Slice Display \> Line Width** to 10px. After this, the result is still the same.

Am I checking the correct function for this, or this feature is just currently not working properly?

Slicer version: Slicer-4.10.1-win-amd64.exe

![New%20Project](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/2/82daa940d9dd17ec1ff222a78d4fb59bc7d23a31.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: [March 13, 2019, 12:25pm UTC](https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130/2 "2019-03-13T12:25:22Z")

</div>

The intersections will need a surface not just a line to control the thickness. You should be able to use the curvemaker or similar method to make a surface from your line.

[https://www.slicer.org/wiki/Documentation/Nightly/Extensions/CurveMaker](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/CurveMaker)

---

<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: [March 13, 2019, 12:34pm UTC](https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130/3 "2019-03-13T12:34:15Z")

</div>

You can use “Markups to Model” extension to convert your line to a tube model. You may also try Models / Display / Slice Display / Mode / Distance encoded projection to show a certain length of the line near the slice plane (you can specify coloring scheme and length of displayed part by editing the color node).

We have recently added support for curves to the nightly version. Currently, you can only create, displaty, edit, and delete them, but we’ll add many more features in the coming months (various projection options, coloring schemes, compute of metrics, reslice volume along the line, etc.). Let us know what features you would need.

---

<div class="post-metadata">

### Author: ![michalikthomas](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@michalikthomas](https://discourse.slicer.org/u/michalikthomas)
#### Post date: [March 13, 2019, 1:48pm UTC](https://discourse.slicer.org/t/cannot-set-slice-intersection-thickness-on-display-node/6130/4 "2019-03-13T13:48:57Z")

</div>

Thank you @lassoan @pieper for your answers.

I ended up with using **vtk.vtkTubeFilter** to create needed surfaces.
