MantisBT - VTK
View Issue Details
0007096VTK(No Category)public2008-05-25 16:152016-08-12 09:54
Sam Preston 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0007096: vtkPropPicker does not report correct GetPickPosition when using PickList
vtkPropPicker uses the WorldPointPicker to find the pick location returned by GetPickPosition. However, if a pick list is used to select from a subset of actors in the scene, vtkPropPicker::GetPickPosition will return the hit point of *any* actor in the currently rendered scene. vtkWorldPointPicker uses vtkRenderer::GetZ(...) in it's Pick method, while vtkPropPicker should use vtkViewport::GetPickedZ() to get the Z location of the picked point, not the Z value of any rendered geometry in the current scene.
I've attached a test program that shows the problem. There is a red sphere and a blue sphere in the scene. A vtkPropPicker is used to perform picking. A pick list is used such that only the red sphere should be pickable. If the red sphere is picked, a small green sphere is drawn at the pick point. If the red sphere is behind the blue sphere, the red sphere will be picked but the green sphere will be drawn at the intersection with the blue sphere.

I've also included a patch to fix this which moves the functionality for converting from screen space to world space to a protected function in vtkAbstractPicker, and has both vtkWorldPointPicker and vtkPropPicker call this function.
No tags attached.
tgz vtkPropPickerData.tgz (2,931) 2008-05-25 16:15
https://www.vtk.org/Bug/file/6502/vtkPropPickerData.tgz
Issue History
2008-05-25 16:15Sam PrestonNew Issue
2008-05-25 16:15Sam PrestonFile Added: vtkPropPickerData.tgz
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036977
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036977)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.