From: enk Date: Tue, 4 Jul 2006 07:32:22 +0000 (+0000) Subject: Minor fix for situation SCALAR MAP ON DEFORMED SHAPE (vectors and scalars on CELL... X-Git-Tag: T3_2_1_pre~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e5e8e9638e2ee83707cf3d468a815ff3efe66dd5;p=modules%2Fvisu.git Minor fix for situation SCALAR MAP ON DEFORMED SHAPE (vectors and scalars on CELL field) --- diff --git a/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx index b8c9f864..6e4139c7 100644 --- a/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx +++ b/src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx @@ -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);