<div dir="ltr">Hi Lonni,<div><br></div><div>Regarding picker->PickTextureOn(), I looked through the code and the</div><div>docs, and it only moves the results of GetPointIJK(), GetCellIJK(), and</div><div>GetPCoords() into the vtkTexture input data space.  GetMapperPoint() still</div><div>returns the coord in the vtkPolyDataMapper input space.</div><div><br></div><div>So to get the data coords in the texture's data space, you'd have to do</div><div>something like this pseudocode:</div><div><br></div><div>ix, iy, iz = picker->GetCellIJK()</div><div>px, py, pz = picker->GetPCoords()</div><div>x = origin[0] + (ix + px - 0.5)*spacing[0]<br></div><div>y = origin[1] + (iy + py - 0.5)*spacing[1]<br></div><div>z = origin[2] + (iz + pz - 0.5)*spacing[2] <br></div><div><br></div><div>The above should give accurate data coords within the image space of</div><div>the vtkTexture's input.</div><div><br></div><div><br></div><div>Moving on to your latest email:<br></div><div><br></div><div>If you are getting the position with picker->GetMapperPosition(), and if I</div><div>understand your pipeline properly, then the only matrix you need to apply</div><div>to that position is the ResliceAxes matrix.  If that's not working, then maybe</div><div>I still don't completely understand your pipeline (but I'm getting exhausted).</div><div><br></div><div>If you were getting the position in world coordinates, with GetPickPosition(),</div><div>then you would have to apply the inverse of the actor matrix to move from</div><div>world coordinates to data coordinates.  But rather than use GetPickPosition(),</div><div>I believe it is better to instead get the data coords as I outlined above.</div><div><br></div><div> - David</div><div><br></div><div><br></div><div><br></div></div>