<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div class="gmail_quote">On Mon, Oct 25, 2010 at 5:44 AM, Raśl Ferriz <span dir="ltr"><<a href="mailto:raul@torresyvalero.com">raul@torresyvalero.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<br>
I need to measure distance between two surface points of 3d mesh. Is there a widget that do this or should I derive from vtkDistanceWidget ( or other widget ) and do it by myself?<br>
<br>
Many thanks.</blockquote><div><br></div><div>I believe this finds the shortest path along edges of the mesh. You can get the distance of that path:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath"></a>Of course this is not equal to the shortest distance if you do not have to follow edges, but if your mesh is fine enough it may be a good enough approximation.<div>
<br></div><div>David</div></div></div>