Model LineWidth

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

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

obrazek

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:

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 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.