[vtkusers] Pick point on vtkPlane
Anka Kochanowska
pluszcz at gmail.com
Fri Nov 6 10:11:52 EST 2009
Hi!
Maybe this explanation written by Mark Wyszomierski (thanks Mark!) could
help:
http://devsample.org/index.php?option=com_content&task=view&id=48&Itemid=27
Anka
On Fri, Nov 6, 2009 at 9:17 AM, David Doria
<daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> wrote:
> 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
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091106/ac59dd09/attachment.htm>
More information about the vtkusers
mailing list