]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Visualization/SkeletonToPolyData.cxx
...
[cpPlugins.git] / lib / cpExtensions / Visualization / SkeletonToPolyData.cxx
index 8f5f4dbac4ae54b82ea3eedae90d4e44adcd8114..5aa7d207de3730e7fd6a8a6a5874cbe4a57f012c 100644 (file)
@@ -109,8 +109,8 @@ RequestData(
           if( i > 0 )
           {
             lines->InsertNextCell( 2 );
+            lines->InsertCellPoint( points->GetNumberOfPoints( ) - 2 );
             lines->InsertCellPoint( points->GetNumberOfPoints( ) - 1 );
-            lines->InsertCellPoint( points->GetNumberOfPoints( ) );
 
           } // fi