<div dir="ltr">vtkPicker should help you :<br><br><a href="http://www.vtk.org/doc/nightly/html/classvtkPicker.html">http://www.vtk.org/doc/nightly/html/classvtkPicker.html</a><br><br><div class="gmail_quote">2008/8/13 Mathieu Coursolle <span dir="ltr"><<a href="mailto:mcoursolle@rogue-research.com">mcoursolle@rogue-research.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi VTK-Users,<br>
<br>
I am using VTK on OSX with Core-Animation enabled. Therefore, I am unable to use any picking<br>
algorithm that use the glReadPixel to retrieve the z-buffer, as the openGL scene seems to be flattened<br>
at the end of the drawing process.<br>
<br>
I am trying to figure out a way to pick a 3D point in space from a list of known pickable actors.<br>
<br>
So let's say I have a collection of actors I know I can pick from, and a 2D view coordinate where the<br>
mouse was clicked;<br>
Is there a class/function in VTK that could be used to detect the intersection of the<br>
vector going from the near plane to the far plane in parallel projection, and the nearest actor from the<br>
list of pickable ones?<br>
<br>
Thanks!<br>
<br>
Mathieu<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Julian Ibarz<br>
</div>