[vtkusers] Pick all voxels through the pick ray
fboli94 at gmail.com
Mon Dec 5 13:15:47 EST 2016
I'm trying to get all the voxels that the pick ray find in the volume I have
in the window. By now I just get the first one by using these lines:
vtkSmartPointer<vtkVolumePicker> picker =
int* pos = this->GetInteractor()->GetEventPosition();
picker->Pick(pos, pos, pos, this->GetDefaultRenderer());
int* ijk = picker->GetPointIJK();
I would like to obtain the ijk positions of all the voxels the ray cross,
not only the first.
Can someone help me?
Thanks in advice.
View this message in context: http://vtk.1045678.n5.nabble.com/Pick-all-voxels-through-the-pick-ray-tp5741426.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers