From: davila Date: Thu, 29 Jan 2015 15:34:27 +0000 (+0100) Subject: #2521 BBTK Bug New Normal - Surface Texture not accepting double format X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=081cd2c85f2435f4e9fba6f14e6dfa8b6456295b;p=bbtk.git #2521 BBTK Bug New Normal - Surface Texture not accepting double format --- diff --git a/packages/vtk/src/bbvtkSurfaceTexture.cxx b/packages/vtk/src/bbvtkSurfaceTexture.cxx index 12d32b0..f9f0139 100644 --- a/packages/vtk/src/bbvtkSurfaceTexture.cxx +++ b/packages/vtk/src/bbvtkSurfaceTexture.cxx @@ -77,11 +77,6 @@ printf("EED SurfaceTexture::Process Start\n"); } - - - - - bbGetInputMesh()->GetPointData()->SetScalars(colors); if (bbGetInputColorType()==1) @@ -101,7 +96,7 @@ printf("EED SurfaceTexture::Process Start\n"); bbGetInputTransform()->Update(); } - unsigned short gl; + double gl; double p1[3]; double p2[3]; double dcolor[3]; @@ -145,9 +140,9 @@ void SurfaceTexture::bbUserSetDefaultValues() bbSetInputColorWindow(500); bbSetInputTransform(NULL); - firsttime = true; - colors = NULL; - colorLookupTable = NULL; + firsttime = true; + colors = NULL; + colorLookupTable = NULL; colorLookupTableWL = NULL; } //=====