[vtkusers] about vtkDijkstraGraphGeodesicPath

Frédéric BRIEND briend at cyceron.fr
Wed Oct 11 13:12:32 EDT 2017


Hi,

Sorry for the double post.
Since the old post of Karthik 
<https://public.kitware.com/pipermail/vtkusers/2010-May/060254.html>, is 
there a way with "vtkDijkstraGraphGeodesicPath" to have the distance by 
GetGeodesicLength() ? How to do otherwise?

Thanks in advance!

My python script:

cylinder= vtk.vtkSphereSource()
cylinder.SetCenter(0.0, 0.0, 0.0)
cylinder.SetRadius(0.5)

dijkstra = vtk.vtkDijkstraGraphGeodesicPath()
dijkstra.SetInputConnection(cylinder.GetOutputPort())
dijkstra.SetStartVertex(4)
dijkstra.SetEndVertex(28)
dijkstra.Update()

weights = vtk.vtkDoubleArray()
size=dijkstra.GetCumulativeWeights(weights)

print size

I obtain for size: none

-- 

FredericBriend

PhD Candidate

Université de Caen Normandie

Laboratoire Imagerie et Stratégies Thérapeutiques de la Schizophrénie 
(ISTS, EA 7466)

GIP CYCERON, Caen 14000, France

Tel +33 2 31 47 01 56

Email : briend at cyceron.fr <http://www.ists.cyceron.fr/>

http://www.ists.cyceron.fr/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171011/e4a0ee9f/attachment.html>


More information about the vtkusers mailing list