vtkGenerateVectors::Operate(ret->GetFieldData());
// The operations above have potentially created new arrays -> This breaks the optimization of StaticMesh that expects the same field arrays over time.
// To enforce the cache recomputation declare modification of mesh.
- vtkGenerateVectors::ChangeMeshTimeToUpdateCache(ret);
+ //vtkGenerateVectors::ChangeMeshTimeToUpdateCache(ret);
}
return ret;
}
vtkAbstractArray* inArr = inPD->GetAbstractArray(iArr);
outArr = inArr->NewInstance();
outArr->SetName(inArr->GetName());
- outArr->SetNumberOfTuples(output->GetNumberOfPoints());
outArr->SetNumberOfComponents(inArr->GetNumberOfComponents());
+ outArr->SetNumberOfTuples(output->GetNumberOfPoints());
inArr->GetTuples(pointIds.Get(), outArr);
outPD->AddArray(outArr);
}
vtkAbstractArray* inArr = inCD->GetAbstractArray(iArr);
outArr = inArr->NewInstance();
outArr->SetName(inArr->GetName());
- outArr->SetNumberOfTuples(output->GetNumberOfCells());
outArr->SetNumberOfComponents(inArr->GetNumberOfComponents());
+ outArr->SetNumberOfTuples(output->GetNumberOfCells());
inArr->GetTuples(cellIds.Get(), outArr);
outCD->AddArray(outArr);
}