From d05a5511e69f6d333c37bf0cea5505092127fb4d Mon Sep 17 00:00:00 2001 From: Orkisz Date: Tue, 24 Mar 2015 23:30:14 +0100 Subject: [PATCH] access to the final skeleton updated --- appli/examples/example_ImageAlgorithm_Skeletonization.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appli/examples/example_ImageAlgorithm_Skeletonization.cxx b/appli/examples/example_ImageAlgorithm_Skeletonization.cxx index 109d1d1..22b85e7 100644 --- a/appli/examples/example_ImageAlgorithm_Skeletonization.cxx +++ b/appli/examples/example_ImageAlgorithm_Skeletonization.cxx @@ -186,7 +186,7 @@ int main( int argc, char* argv[] ) vtkSmartPointer< vtkFloatArray >::New( ); const TDijkstra::TVertices& endpoints = paths->GetEndPoints( ); - const TDijkstra::TTree& tree = paths->GetFinalTree( ); + const TDijkstra::TTree& tree = paths->GetFullTree( ); TDijkstra::TVertices::const_iterator epIt = endpoints.begin( ); for( unsigned int epId = 0; epIt != endpoints.end( ); ++epIt, ++epId ) { @@ -207,9 +207,9 @@ int main( int argc, char* argv[] ) cells->InsertCellPoint( points->GetNumberOfPoints( ) - 1 ); } // fi - idx = tree.find( idx )->second; + idx = tree.find( idx )->second.first; - } while( idx != tree.find( idx )->second ); + } while( idx != tree.find( idx )->second.first ); } // rof -- 2.45.1