From: Eduardo DAVILA Date: Thu, 5 Sep 2019 14:55:40 +0000 (+0200) Subject: #3301 BBTK Bug New Normal SurfaceTexture X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=de43eb7ffbd5842fd2c62c2f4c59164662773105;p=bbtk.git #3301 BBTK Bug New Normal SurfaceTexture --- 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;