From b2426b967d278b6ef83d202be0d9f4dbe2aa9d8e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 11 Sep 2019 15:54:55 +0200 Subject: [PATCH] #3304 creaVtk Bug New Normal - GrayLevel box --- bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx index 8922cfa..4f8ca61 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkGrayLevel.cxx @@ -40,9 +40,9 @@ void GrayLevel::Process() { if (bbGetInputWithSpacing()==true) { - px = round(coord[0])/spc[0]; - py = round(coord[1])/spc[1]; - pz = round(coord[2])/spc[2]; + px = round(coord[0]/spc[0]); + py = round(coord[1]/spc[1]); + pz = round(coord[2]/spc[2]); } else { px = round(coord[0]); py = round(coord[1]); @@ -61,9 +61,9 @@ void GrayLevel::Process() { if (bbGetInputWithSpacing()==true) { - px = round(lstX[i])/spc[0]; - py = round(lstY[i])/spc[1]; - pz = round(lstZ[i])/spc[2]; + px = round(lstX[i]/spc[0]); + py = round(lstY[i]/spc[1]); + pz = round(lstZ[i]/spc[2]); } else { px = round(lstX[i]); py = round(lstY[i]); -- 2.47.1