Skip to content

Commit

Permalink
ENH: Remove use of deprecated SetNthControlPointPositionWorldFromArray
Browse files Browse the repository at this point in the history
Replaced with SetNthControlPointPositionWorld.
  • Loading branch information
Sunderlandkyl committed Jan 27, 2023
1 parent d3fd2b2 commit 050c88d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions BreachWarning/Logic/vtkSlicerBreachWarningLogic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ void vtkSlicerBreachWarningLogic::UpdateLineToClosestPoint(vtkMRMLBreachWarningN
}
else
{
line->SetNthControlPointPositionWorldFromArray(0, toolTipPosition_Ras);
line->SetNthControlPointPositionWorldFromArray(1, closestPointOnModel_Ras);
line->SetNthControlPointPositionWorld(0, toolTipPosition_Ras);
line->SetNthControlPointPositionWorld(1, closestPointOnModel_Ras);
}

if (closestPointDistance<0)
Expand Down
4 changes: 2 additions & 2 deletions PathExplorer/Logic/vtkSlicerPathExplorerLogic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ void vtkSlicerPathExplorerLogic::UpdateTrajectory(vtkMRMLPathPlannerTrajectoryNo
}
else
{
pathLineNode->SetNthControlPointPositionWorldFromArray(0, entryPointPositionWorld);
pathLineNode->SetNthControlPointPositionWorld(0, entryPointPositionWorld);
}
if (pathLineNode->GetNumberOfControlPoints() < 2)
{
pathLineNode->AddControlPointWorld(vtkVector3d(targetPointPositionWorld));
}
else
{
pathLineNode->SetNthControlPointPositionWorldFromArray(1, targetPointPositionWorld);
pathLineNode->SetNthControlPointPositionWorld(1, targetPointPositionWorld);
}
// Update name from point names
std::string lineName = std::string(entryPoints->GetNthControlPointLabel(entryPointIndex))
Expand Down

0 comments on commit 050c88d

Please sign in to comment.