<div>The vtkViewport::ViewToWorld() function converts a viewport coordinate (2D) to a world coordinate (3D). Are you only supposed to consider the result of the first two coordinates (ie. the (x,y) viewport coordinates get mapped to an (x,y) world coordinate, and the z world coordinate is bogus?)</div>
<div><br></div><div>If that is correct, I am trying to use vtkCoordinate to get the world coordinates of the mouse click. This is what I came up with:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/ClickWorldCoordinates">http://www.vtk.org/Wiki/VTK/Examples/Interaction/ClickWorldCoordinates</a><div>
<br></div><div>The thought is that when you click on the outer edge of the sphere, the magnitude of the (x,y) world point should be 5 (the radius of the sphere). An even easier check is to click on the top point of the sphere (expecting to get (0,5) and the right point of the sphere (expecting to get (5,0)). The results are sane (the right point of the sphere is (something, 0), but it is not 5. In fact, it varies with how zoomed in the camera is.</div>
<div><br></div><div>Anyone see the issue here?</div><div><br clear="all">Thanks,<br><br>David<br>
</div>