From: Eduardo DAVILA Date: Thu, 28 Jul 2016 13:26:24 +0000 (+0200) Subject: #3000 BBTK Bug New Normal - vtk package CleanPlanes box. limits not clear X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtk.git;a=commitdiff_plain;h=eaeb70d041d2e5fa77547f37f231ee398a44768a #3000 BBTK Bug New Normal - vtk package CleanPlanes box. limits not clear --- diff --git a/packages/vtk/src/bbvtkCleanExternalPlane.cxx b/packages/vtk/src/bbvtkCleanExternalPlane.cxx index aa814e2..618f2b0 100644 --- a/packages/vtk/src/bbvtkCleanExternalPlane.cxx +++ b/packages/vtk/src/bbvtkCleanExternalPlane.cxx @@ -55,8 +55,8 @@ void CleanExternalPlane::CleanTypeA(vtkImageData* image) { for (j=0 ; jSetScalarComponentFromDouble (i, j, 0 , 0, 0.0); - image->SetScalarComponentFromDouble (i, j, dim[2]-1, 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+i, ext[2]+j, ext[4]+0 , 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+i, ext[2]+j, ext[4]+dim[2]-1, 0, 0.0); } // for j }// for i @@ -65,8 +65,8 @@ void CleanExternalPlane::CleanTypeA(vtkImageData* image) { for (j=0 ; jSetScalarComponentFromDouble (0 , i, j, 0, 0.0); - image->SetScalarComponentFromDouble (dim[0]-1 , i, j, 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+0 , ext[2]+i, ext[4]+j, 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+dim[0]-1 , ext[2]+i, ext[4]+j, 0, 0.0); } // for j } // for i @@ -75,8 +75,8 @@ void CleanExternalPlane::CleanTypeA(vtkImageData* image) { for (j=0 ; jSetScalarComponentFromDouble (i, 0 , j, 0, 0.0); - image->SetScalarComponentFromDouble (i, dim[1]-1 , j, 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+i, ext[2]+0 , ext[4]+j, 0, 0.0); + image->SetScalarComponentFromDouble (ext[0]+i, ext[2]+dim[1]-1 , ext[4]+j, 0, 0.0); } // for j }// for i } // if In