[vtkusers] vtkCellPicker not working with vtkGlyph3DMapper
Bob Dean
bob.dean at gmail.com
Mon Jun 24 22:08:00 EDT 2013
I can do that, its a #define. The main reason I swapped was I needed to individually rotate the glyphs. The simple Rpy interface of 3dmapper made this simple. I had previously tried tensor glyph without success.
Sent from my iPhone
On Jun 24, 2013, at 9:09 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> 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