[vtkusers] Picking actors from an assembly
Koteswara Rao Ruvva
ruvva at yahoo.com
Fri Feb 23 02:49:26 EST 2018
Thank you for responding, Todd.
First of all, I cannot instantiate vtkAbstractPropPicker, as it is abstract type. I appreciate if you can send me some sudo code. BTW, I moved from vtk7.1.1 to 8.1.0.
Thank youRao
On Wednesday, February 21, 2018, 11:25:07 PM PST, Todd via vtkusers <vtkusers at vtk.org> wrote:
vtkAbstractPropPicker.GetActor() in vtk 8
On 22 Feb 2018 7:02 p.m., Koteswara Rao Ruvva via vtkusers <vtkusers at vtk.org> wrote:
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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180223/0c2ebb95/attachment.html>
More information about the vtkusers
mailing list