Salome HOME
Connect to Bug PAL7927
authorapo <apo@opencascade.com>
Mon, 7 Feb 2005 05:50:14 +0000 (05:50 +0000)
committerapo <apo@opencascade.com>
Mon, 7 Feb 2005 05:50:14 +0000 (05:50 +0000)
   REGRESSION: It is an incorrect import of the MED file and incorrect coloring of the scalar map.

src/OBJECT/VISU_ScalarMapAct.cxx

index 6323ce13768f2b1143bcd921b07f475406d1a12e..01449f79b21e3d63a93c441610c1868223ca1c8f 100644 (file)
@@ -39,12 +39,12 @@ VISU_ScalarMapAct::VISU_ScalarMapAct(){
   myScalarBar = VISU_ScalarBarActor::New();
 
   vtkProperty* aProperty = GetProperty();
-  aProperty->SetAmbient(0.5); 
-  aProperty->SetDiffuse(0.2);
-  aProperty->SetSpecular(0.2);
-  //aProperty->SetAmbient(1.0); 
-  //aProperty->SetDiffuse(0.0);
-  //aProperty->SetSpecular(0.0);
+  //aProperty->SetAmbient(0.5); 
+  //aProperty->SetDiffuse(0.2);
+  //aProperty->SetSpecular(0.2);
+  aProperty->SetAmbient(1.0); 
+  aProperty->SetDiffuse(0.0);
+  aProperty->SetSpecular(0.0);
 
   myProperty->DeepCopy(aProperty);
 }