Skip to content

Commit

Permalink
ENH: Make model slice intersection thickness control intersection poi…
Browse files Browse the repository at this point in the history
…nt size as well

Models -> Display -> Slice display -> Line width now has effect when the model consists of a line.
Previously, when a line model intersected the slice the intersection point was always just 1 pixel.

Fixes issue described at https://discourse.slicer.org/t/model-linewidth/23330
  • Loading branch information
lassoan committed May 8, 2022
1 parent 5514b17 commit adf8985
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ ::UpdateDisplayNodePipeline(vtkMRMLDisplayNode* displayNode, const Pipeline* pip

vtkProperty2D* actorProperties = actor->GetProperty();
actorProperties->SetColor(displayNode->GetColor());
actorProperties->SetPointSize(displayNode->GetSliceIntersectionThickness());
actorProperties->SetLineWidth(displayNode->GetSliceIntersectionThickness());
actorProperties->SetOpacity(hierarchyOpacity * displayNode->GetSliceIntersectionOpacity());

Expand Down

0 comments on commit adf8985

Please sign in to comment.