[vtkusers] vtkPicker returned actor
David Gobbi
david.gobbi at gmail.com
Mon Feb 29 11:54:43 EST 2016
On Mon, Feb 29, 2016 at 9:39 AM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:
> The spacing is 1 along the three axis.
> The origin is -51,-46,0.
>
> GetMapperPosition is always between -0.5 and 0.5 and therefore the
> computation I make afterwards as you suggested with the resliceAxesMatrix
> is
> always comprised between 50.5 and 51.5 for the X axis, and 46.5 and 47.5
> for
> the y axis.
>
It seems to me that the value returned by GetMapperPosition() is wrong (at
least,
its wrong for when PickTextureDataOn()). And if that is wrong, then the
result
from resliceAxesMatrix->MultiplyPoint() will also be wrong. So I will look
into
this when I have a break from work.
In the meantime, you can compute an "approximate" position from the IJK
values,
by multiplying by the Spacing and adding the Origin.
- David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160229/036f8d2e/attachment.html>
More information about the vtkusers
mailing list