]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor fix for situation SCALAR MAP ON DEFORMED SHAPE (vectors and scalars on CELL...
authorenk <enk@opencascade.com>
Tue, 4 Jul 2006 07:32:22 +0000 (07:32 +0000)
committerenk <enk@opencascade.com>
Tue, 4 Jul 2006 07:32:22 +0000 (07:32 +0000)
src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx

index b8c9f864be6ada36311026a50d621df06bcd5200..6e4139c7093bdac4f4456adc6a3eb5abca4f0e60 100644 (file)
@@ -191,10 +191,12 @@ VISU_ScalarMapOnDeformedShapePL
 {
   myScalars = theScalars;
   vtkUnstructuredGrid* aScalars = GetScalars();
+  vtkCellData *aInCellData = GetInput()->GetCellData();
 
   if(aScalars->GetPointData()->GetScalars())
     myExtractorScalars->SetInput(aScalars);
-  else if(aScalars->GetCellData()->GetScalars()){
+  else if(aScalars->GetCellData()->GetScalars() &&
+         !aInCellData->GetAttribute(vtkDataSetAttributes::VECTORS)){
     //Approximate cell data values to point data by vtkCellDataToPointData filter.
     vtkCellDataToPointData* aCellDataToPointData = vtkCellDataToPointData::New();
     aCellDataToPointData->SetInput(aScalars);