[vtkusers] Picking actors from an assembly

Koteswara Rao Ruvva ruvva at yahoo.com
Thu Feb 22 01:02:59 EST 2018


Hello all,
I have two vtkPropAssemblies in the Renderer, each with couple of vtkActors. How do I pick an actor using mouse? I need to find the actor and the location on the actor. I tried the following code, but I am getting an assembly instead of the actor.
picker = vtk.vtkPropPicker()if picker.Pick(mouseX, mouseY, 0,  renderer):        prop = picker.GetPath().GetFirstNode().GetViewProp()
        print(prop)     
Please advise.
Thank youRao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180222/fee6f5c1/attachment.html>


More information about the vtkusers mailing list