<div dir="ltr">Hi David,<div><br></div><div>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. </div>
<div>I checked it previously and now (just in case).<br><br>I sent 3 captures:</div><div><br></div><div>1- First 2 clicks, the 2 white spheres are from the vtklinewidget2.</div><div>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.</div>
<div>3- Correct case (you can't see the line between the points because they are on the surface of the sphere).</div><div><br></div><div>I don't know what's happening here!</div><div><br></div><div>Thanks in advance.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-16 17:57 GMT+02:00 David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The documentation for "Pick" says "Return non-zero if something was successfully picked."<br>
<br>
But you are ignoring the return value of Pick.<br>
<br>
So how do you know if something was successfully picked or not?<br>
<br>
Calling GetPickPosition is only well-defined, and will only give you a good value if Pick returned non-zero.....<br>
<br>
<br>
HTH,<br>
David C<br>
<br>
</blockquote></div><br></div>