[vtkusers] vtkDijkstraGraphGeodesicPath example?

David Doria daviddoria+vtk at gmail.com
Sat Apr 10 09:14:41 EDT 2010


On Sat, Apr 10, 2010 at 1:26 AM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> See the test:
>
>   Widgets/Testing/Cxx/TestDijkstraGraphGeodesicPath
>
> A grep would have told you that :)

Rashed,

Here is a working example:

http://www.vtk.org/Wiki/VTK/Examples/Graph/DijkstraGraphGeodesicPath

It uses a lot of classes:
#include "vtkContourWidget.h"
#include "vtkOrientedGlyphContourRepresentation.h"
#include "vtkPolygonalSurfacePointPlacer.h"
#include "vtkPolygonalSurfaceContourLineInterpolator.h"

If you care to simplify it to not be so interactive and simply take
two point IDs and return a list of point IDs on the path between them,
that would be a great separate example.

Thanks,

David



More information about the vtkusers mailing list