<meta http-equiv="Content-Type" content="text/html charset=utf-8">Hi David,<div class=""><br class=""></div><div class="">Thanks a lot for everything.</div><div class="">I will try that tomorrow morning. Getting kinda late here. I’ll keep you posted.</div><div class=""><br class=""></div><div class="">Thanks again.</div><div class=""><br class=""></div><div class="">Have a good evening(?)</div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="color: rgb(34, 34, 34); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: arial, sans-serif; font-size: 13px;" class=""><div class=""><i class="">Best </i></div></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite" class=""><div class="">On 01 Mar 2016, at 00:19, David Gobbi [via VTK] <<a href="/user/SendEmail.jtp?type=node&node=5736944&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

        <div dir="ltr" class="">Hi Lonni,<div class=""><br class=""></div><div class="">Regarding picker->PickTextureOn(), I looked through the code and the</div><div class="">docs, and it only moves the results of GetPointIJK(), GetCellIJK(), and</div><div class="">GetPCoords() into the vtkTexture input data space.  GetMapperPoint() still</div><div class="">returns the coord in the vtkPolyDataMapper input space.</div><div class=""><br class=""></div><div class="">So to get the data coords in the texture's data space, you'd have to do</div><div class="">something like this pseudocode:</div><div class=""><br class=""></div><div class="">ix, iy, iz = picker->GetCellIJK()</div><div class="">px, py, pz = picker->GetPCoords()</div><div class="">x = origin[0] + (ix + px - 0.5)*spacing[0]<br class=""></div><div class="">y = origin[1] + (iy + py - 0.5)*spacing[1]<br class=""></div><div class="">z = origin[2] + (iz + pz - 0.5)*spacing[2] <br class=""></div><div class=""><br class=""></div><div class="">The above should give accurate data coords within the image space of</div><div class="">the vtkTexture's input.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Moving on to your latest email:<br class=""></div><div class=""><br class=""></div><div class="">If you are getting the position with picker->GetMapperPosition(), and if I</div><div class="">understand your pipeline properly, then the only matrix you need to apply</div><div class="">to that position is the ResliceAxes matrix.  If that's not working, then maybe</div><div class="">I still don't completely understand your pipeline (but I'm getting exhausted).</div><div class=""><br class=""></div><div class="">If you were getting the position in world coordinates, with GetPickPosition(),</div><div class="">then you would have to apply the inverse of the actor matrix to move from</div><div class="">world coordinates to data coordinates.  But rather than use GetPickPosition(),</div><div class="">I believe it is better to instead get the data coords as I outlined above.</div><div class=""><br class=""></div><div class=""> - David</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
<br class="">_______________________________________________
<br class="">Powered by <a href="http://www.kitware.com" class="" target="_top" rel="nofollow" link="external">www.kitware.com</a>
<br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_top" rel="nofollow" link="external" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_top" rel="nofollow" link="external" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br class=""><br class="">Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_top" rel="nofollow" link="external" class="">http://markmail.org/search/?q=vtkusers</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:
<br class=""><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_top" rel="nofollow" link="external" class="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="">

        
        
        
        <br class="">
        <br class="">
        <hr noshade="noshade" size="1" class="">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;" class="">
                <div style="font-weight:bold" class="">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736943.html" class="" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736943.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em" class="">
                
                To unsubscribe from vtkPicker returned actor, <a href="" class="" target="_top" rel="nofollow" link="external">click here</a>.<br class="">
                <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" class="" target="_top" link="external">NAML</a>
        </div></div></blockquote></div><br class=""></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkPicker-returned-actor-tp5736763p5736944.html">Re: vtkPicker returned actor</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>