<div dir="ltr">I agree. You should try to find an open source implementation.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 9:14 PM, jozzas <span dir="ltr">&lt;<a href="mailto:jozzas@hotmail.com" target="_blank">jozzas@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Bill,<br>
<br>
My understanding is that vtkDistancePolyDataFilter computes the distance at<br>
every point (vertex) in each vtkPolyData object passed to it.<br>
<br>
If you imagine two narrow rectangular prisms, one rotated 90 degrees and<br>
slightly above the other in Z, you can see that this algorithm doesn&#39;t<br>
calculate the minimum distance between the convex sets defined by those<br>
vtkPolyData instances, as calculating vertex-vertex distances is inaccurate.<br>
The minimum distance between these objects intersects the faces which<br>
overlap in XY, so any algorithm to determine the true minimum distance (like<br>
GJK) will include edges, faces and vertices.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Minimum-distance-between-two-vtkPolyData-objects-tp5719993p5719995.html" target="_blank">http://vtk.1045678.n5.nabble.com/Minimum-distance-between-two-vtkPolyData-objects-tp5719993p5719995.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>