[vtkusers] about vtkDijkstraGraphGeodesicPath
djzhu at uga.edu
Wed May 19 13:31:32 EDT 2010
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>
> 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
> 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:
> vtkSmartPointer<vtkPolyDataReader> TReader =
> > 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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers