[vtkusers] vtkCellPicker not working with vtkGlyph3DMapper
David Gobbi
david.gobbi at gmail.com
Mon Jun 24 21:09:56 EDT 2013
On Mon, Jun 24, 2013 at 11:49 AM, Bob Dean <bob.dean at gmail.com> wrote:
> I recently changed to use vtkGlyph3DMapper from vtkGlyph for the enhanced rendering and orientation support. Now when I click a glyph in the scene, my cell picker returns 0 from GetActor(). The world coordinates from the puck seem correct. Swap back to old rendering and everything is fine. I have verified that the actor is pick able.
>
> Do I need to setup something special to get 3dmapper to be picked?
The vtkCellPicker works by checking to see if a view ray at the mouse
position intersects with the input data. But for vtkGlyph3DMapper,
the data returned by GetInput() is just a set of points (the glyphing
happens on the GPU).
Try using vtkGlyph3D instead of vtkGlyph3DMapper and the picker should
work just fine.
- David
More information about the vtkusers
mailing list