From de43eb7ffbd5842fd2c62c2f4c59164662773105 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 5 Sep 2019 16:55:40 +0200 Subject: [PATCH] #3301 BBTK Bug New Normal SurfaceTexture --- kernel/src/bbtkWtBlackBox.h | 4 ++-- packages/vtk/src/bbvtkSurfaceTexture.cxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/src/bbtkWtBlackBox.h b/kernel/src/bbtkWtBlackBox.h index 4725a0d..e73bde9 100644 --- a/kernel/src/bbtkWtBlackBox.h +++ b/kernel/src/bbtkWtBlackBox.h @@ -157,6 +157,6 @@ namespace bbtk } //namespace bbtk -#endif //__bbtkWxBlackBox_h__ +#endif //__bbtkWtBlackBox_h__ -#endif //USE_WXWIDGETS +#endif //USE_WT diff --git a/packages/vtk/src/bbvtkSurfaceTexture.cxx b/packages/vtk/src/bbvtkSurfaceTexture.cxx index 0016c6e..2d5c86d 100644 --- a/packages/vtk/src/bbvtkSurfaceTexture.cxx +++ b/packages/vtk/src/bbvtkSurfaceTexture.cxx @@ -197,7 +197,7 @@ void SurfaceTexture::Process() if ( (p2[0]>=0) && (p2[0]=0) && (p2[1]=0) && (p2[2]GetScalarComponentAsDouble(p2[0], p2[1], p2[2],0); + gl = bbGetInputImage()->GetScalarComponentAsDouble(round(p2[0]), round(p2[1]), round(p2[2]),0); } else { gl=0; } @@ -221,6 +221,7 @@ void SurfaceTexture::bbUserSetDefaultValues() bbSetInputColorLevel(500); bbSetInputColorWindow(500); bbSetInputTransform(NULL); + bbSetInputExternalLookupTable(NULL); firsttime = true; colors = NULL; -- 2.47.1