# Model LineWidth

**URL:** <https://discourse.slicer.org/t/model-linewidth/23330>\
**Category:** Support\
**Created:** [May 8, 2022, 2:05am UTC](https://discourse.slicer.org/t/model-linewidth/23330 "2022-05-08T02:05:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Kalina](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/adam_kalina/32/15233_2.png) [@Adam\_Kalina](https://discourse.slicer.org/u/Adam_Kalina)\
**Post date:** [May 8, 2022, 2:05am UTC](https://discourse.slicer.org/t/model-linewidth/23330/1 "2022-05-08T02:05:51Z")

</div>

Operating system: Win 10  
Slicer version: 4.10,4.11, 4.13  
Expected behavior: Models → Display → Slice display → Line Width should change size of line intersection with slice  
Actual behavior: works in 3D, in slice it stays the same - 1px = hard to see

Line created using

```python
line = vtk.vtkLineSource()
line.SetPoint1([0,0,0])
line.SetPoint2([30,30,30])
modelNode = slicer.modules.models.logic().AddModel(line.GetOutputPort())

```

 ![obrazek](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/3/a3b6ce086da93bddbf54fdb48eb2774b3fd8ab15.png)

---

<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:** [May 8, 2022, 4:19am UTC](https://discourse.slicer.org/t/model-linewidth/23330/2 "2022-05-08T04:19:48Z")

</div>

The slice display → line width setting currently only sets line width. It does not affect point size.

Usually we set 2D intersection size by specifying a physical size for the line via a tube filter:

```python
line = vtk.vtkLineSource()
line.SetPoint1([0,0,0])
line.SetPoint2([30,30,30])
tube = vtk.vtkTubeFilter()
tube.SetInputConnection(line.GetOutputPort())
tube.SetNumberOfSides(4)
tube.SetRadius(1.5)
modelNode = slicer.modules.models.logic().AddModel(tube.GetOutputPort())
modelNode.GetDisplayNode().SetVisibility2D(True)
modelNode.GetDisplayNode().SetSliceIntersectionThickness(10)

```

Nevertheless, I can see that it could be intuitive to set intersection point size along with line size, so I’ve pushed a [change](https://github.com/Slicer/Slicer/commit/adf8985966ad4ebcf5ef49fcc2ca8f15a95dceda) to make Slicer apply the slice intersection thickness to both points and lines. The update will be available in the Slicer Preview Release from Monday.
