[vtkusers] about vtkDijkstraGraphGeodesicPath

Darshan Pai darshanpai at gmail.com
Wed May 19 21:01:07 EDT 2010


Wasnt there a vtkPolyDataSingleShortestPath available which did a similar
thing? Is this the next implementation

On Wed, May 19, 2010 at 1:31 PM, Dajiang Zhu <djzhu at uga.edu> wrote:

> Thanks, your suggestion and info are very helpful. Have a nice afternoon!
>
>
> On Wed, May 19, 2010 at 1:24 PM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
> > wrote:
>
>> Karthik seems to have answered your question, but I have some comments
>> on your existing code:
>>
>> Karthik - when you commit this, can you update the example to
>> match/demonstrate?
>>
>> Dajiang - See inline below:
>>
>> On Wed, May 19, 2010 at 1:14 PM, Dajiang Zhu <djzhu at uga.edu> wrote:
>> > oh, Thanks, I got nothing because I went to a wrong place:
>> > http://www.vtk.org/Wiki/VTK/Examples/Graph/DijkstraGraphGeodesicPath
>>
>> Where did you find that link? Was it just a mistake? Or does a link
>> need to be fixed somewhere?
>>
>> >
>> > vtkPolyDataReader* TReader=vtkPolyDataReader::New();
>>
>> I highly recommend you use smart pointers:
>> http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers
>>
>> vtkSmartPointer<vtkPolyDataReader> TReader =
>>  vtkSmartPointer<vtkPolyDataReader>::New();
>>
>> >     vtkPolyData* TsurfaceData=vtkPolyData::New();
>> >     TsurfaceData=TReader->GetOutput();
>>
>> You should NOT create an object before assigning the output of the reader.
>>
>> Instead, simply do:
>> vtkPolyData* TsurfaceData = TReader->GetOutput();
>>
>> Good luck,
>>
>> David
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100519/3510c5e7/attachment.htm>


More information about the vtkusers mailing list