[vtk-developers] VtkLineWidget2 InteractionEvent distance

Carlos Martinez carlinhosmp87 at gmail.com
Wed Jul 16 12:17:22 EDT 2014


Hi David,

Thanks for your answer but i think isn't the problem here.This is a dummy
project and I'm moving the handlers only inside the area of the sphere and
pick doesn't return 0 in any of the calls to the method.
I checked it previously and now (just in case).

I sent 3 captures:

1- First 2 clicks, the 2 white spheres are from the vtklinewidget2.
2- Wrong case (you can see the line because the points are not on the
surface of the sphere). I checked it with the camera.
3- Correct case (you can't see the line between the points because they are
on the surface of the sphere).

I don't know what's happening here!

Thanks in advance.


2014-07-16 17:57 GMT+02:00 David Cole <dlrdave at aol.com>:

> The documentation for "Pick" says "Return non-zero if something was
> successfully picked."
>
> But you are ignoring the return value of Pick.
>
> So how do you know if something was successfully picked or not?
>
> Calling GetPickPosition is only well-defined, and will only give you a
> good value if Pick returned non-zero.....
>
>
> HTH,
> David C
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140716/f21f8167/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 58636 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140716/f21f8167/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.png
Type: image/png
Size: 57843 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140716/f21f8167/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.png
Type: image/png
Size: 54628 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140716/f21f8167/attachment-0008.png>


More information about the vtk-developers mailing list