[vtkusers] Pick point on vtkPlane

David Doria daviddoria+vtk at gmail.com
Fri Nov 6 09:17:09 EST 2009


On Fri, Nov 6, 2009 at 8:53 AM, superzz <jxdw_zlf at yahoo.com.cn> wrote:

>
> Hello
> I am developping a volume rendering program.
>
> I'm using vtkInteractorStyleTrackballCamera as InteractorStyle and vtkPlane
> to cut volume. When user click the screen, my program needs to calculate
> and
> output the 3D intersection point to vtkPlane.
>
> I know how to do this in my XNA/directX program, but not familiar with the
> corresponding API of VTK. Googled for more than 3 hours but finally failed
> to find out what API should be used. Please help me.
>
> Thanks
>
> superZz
>

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:
http://www.vtk.org/Wiki/Plane_Picking

Can anyone make it output the coordinates of the point that is clicked?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091106/e10e2ebb/attachment.htm>


More information about the vtkusers mailing list