]> Creatis software - bbtk.git/commitdiff
#2521 BBTK Bug New Normal - Surface Texture not accepting double format
authordavila <eduardo.davila@creatis.insa-lyon.fr>
Thu, 29 Jan 2015 15:34:27 +0000 (16:34 +0100)
committerdavila <eduardo.davila@creatis.insa-lyon.fr>
Thu, 29 Jan 2015 15:34:27 +0000 (16:34 +0100)
packages/vtk/src/bbvtkSurfaceTexture.cxx

index 12d32b03aeed898588478a3b1bc4693d72755962..f9f0139004ab1225690dc7d02e298cf080b962a6 100644 (file)
@@ -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;
 }
 //=====