{
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);