Here is a VTK solution <div><a href="http://www.vtk.org/doc/nightly/html/classvtkImplicitPolyDataDistance.html">http://www.vtk.org/doc/nightly/html/classvtkImplicitPolyDataDistance.html</a><br><br>Not sure if there is actually an ITK solution to this. </div>
<div><br></div><div>Cheers, <br>Cagatay </div><div><br></div><div>-- <br><span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Cemal Cagatay Bilgin</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Life Sciences Division</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Lawrence Berkeley National Lab</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">MS977, One Cyclotron Road</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Berkeley, CA 94720, USA</span><br style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<span style="font-size:13px;color:rgb(136,136,136);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Email: ccbilgin</span><a href="mailto:hchang@lbl.gov" target="_blank" style="font-size:13px;color:rgb(17,85,204);font-family:arial,sans-serif;background-color:rgb(255,255,255)">@lbl.gov</a></div>
<div><br><div class="gmail_quote">On Tue, Nov 13, 2012 at 6:37 AM, Xue, Ning (ext) <span dir="ltr">&lt;<a href="mailto:ning.xue.ext@siemens.com" target="_blank">ning.xue.ext@siemens.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>



<div>
<div dir="ltr" align="left"><font face="Arial"><span>Hi everyone,</span></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><font><span>In my project 
i need to compute the minial distance between a mesh and all other 
points in a 3D image, so i want to find an efficient and fast method. 
 </span><span>i think it is a classic problem and 
there are probably already some methods or functions in ITK to solve <span><font color="#0000ff"><font color="#000000">it</font> </font></span>. Unfortunately i cannot find it. 
Hope someone out there has dealt with this before and could give me some advice. 
Any help woud be greatly appreciated.</span></font></font></div>
<div><font face="Arial"><span></span></font> </div>
<div><font face="Arial"><span>Best,</span></font></div>
<div><font face="Arial"><span>Ning </span></font></div>
<div><font face="Arial"><span></span></font> </div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</div>