<div class="gmail_quote">On Fri, Nov 6, 2009 at 8:53 AM, superzz <span dir="ltr"><<a href="mailto:jxdw_zlf@yahoo.com.cn">jxdw_zlf@yahoo.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello<br>
I am developping a volume rendering program.<br>
<br>
I'm using vtkInteractorStyleTrackballCamera as InteractorStyle and vtkPlane<br>
to cut volume. When user click the screen, my program needs to calculate and<br>
output the 3D intersection point to vtkPlane.<br>
<br>
I know how to do this in my XNA/directX program, but not familiar with the<br>
corresponding API of VTK. Googled for more than 3 hours but finally failed<br>
to find out what API should be used. Please help me.<br>
<br>
Thanks<br>
<br>
superZz<br></blockquote><div><br>This is a very good question. I believe you have to add an observer or something? Here is the shell of an example of this: <a href="http://www.vtk.org/Wiki/Plane_Picking">http://www.vtk.org/Wiki/Plane_Picking</a><br>
<br>Can anyone make it output the coordinates of the point that is clicked?<br>
<br clear="all">Thanks,<br><br>David<br>
<br></div></div><br>