X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FVisualization%2FSkeletonToPolyData.cxx;h=5aa7d207de3730e7fd6a8a6a5874cbe4a57f012c;hb=eb7e1229343f1d74c24a4008aae1425180bb95c8;hp=8f5f4dbac4ae54b82ea3eedae90d4e44adcd8114;hpb=7191481dd157b8e1c62b3382a29901ee878757d8;p=cpPlugins.git diff --git a/lib/cpExtensions/Visualization/SkeletonToPolyData.cxx b/lib/cpExtensions/Visualization/SkeletonToPolyData.cxx index 8f5f4db..5aa7d20 100644 --- a/lib/cpExtensions/Visualization/SkeletonToPolyData.cxx +++ b/lib/cpExtensions/Visualization/SkeletonToPolyData.cxx @@ -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