[vtkusers] Measure distance on the surface of a mesh

David Doria daviddoria at gmail.com
Mon Oct 25 08:26:16 EDT 2010


On Mon, Oct 25, 2010 at 5:44 AM, Raúl Ferriz <raul at torresyvalero.com> wrote:

> Hi!
>
> 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?
>
> Many thanks.


I believe this finds the shortest path along edges of the mesh. You can get
the distance of that path:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath

<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DijkstraGraphGeodesicPath>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.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101025/64f5ab08/attachment.htm>


More information about the vtkusers mailing list