]> Creatis software - FrontAlgorithms.git/blobdiff - appli/CTBronchi/Skeleton.cxx
...
[FrontAlgorithms.git] / appli / CTBronchi / Skeleton.cxx
index 41108259e2ba2cd79f44eb25b2f61dc16539ecb9..aa1bd37d0888828ab73ab0658ad871a2f317a394 100644 (file)
@@ -88,12 +88,12 @@ int main( int argc, char* argv[] )
     {
       std::stringstream eStr;
       auto pnts = filter->GetEndPoints( );
-      for( unsigned int i = 0; i < 10; ++i )
+      for( auto pnt: pnts )
       {
         eStr
-          << pnts[ i ][ 0 ] << " "
-          << pnts[ i ][ 1 ] << " "
-          << pnts[ i ][ 2 ] << " " << i % 3 << std::endl;
+          << pnt[ 0 ] << " "
+          << pnt[ 1 ] << " "
+          << pnt[ 2 ] << std::endl;
 
       } // rof
       std::ofstream oStrE( oute.getValue( ).c_str( ) );