From e5e8e9638e2ee83707cf3d468a815ff3efe66dd5 Mon Sep 17 00:00:00 2001 From: enk Date: Tue, 4 Jul 2006 07:32:22 +0000 Subject: [PATCH] Minor fix for situation SCALAR MAP ON DEFORMED SHAPE (vectors and scalars on CELL field) --- src/PIPELINE/VISU_ScalarMapOnDeformedShapePL.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.2