----------------------------------------------------------------------------
| 306 | |
| 307 | //---------------------------------------------------------------------------- |
| 308 | bool vtkGhostCellsGenerator::UseCacheIfPossible(vtkDataObject* input, vtkDataObject* output) |
| 309 | { |
| 310 | assert(input && output); |
| 311 | if (!this->MeshCache->IsSupportedData(input)) |
| 312 | { |
| 313 | return false; |
| 314 | } |
| 315 | |
| 316 | this->MeshCache->SetOriginalDataObject(input); |
| 317 | |
| 318 | auto status = this->MeshCache->GetStatus(); |
| 319 | if (status.enabled()) |
| 320 | { |
| 321 | this->MeshCache->CopyCacheToDataObject(output); |
| 322 | return true; |
| 323 | } |
| 324 | |
| 325 | return false; |
| 326 | } |
| 327 | |
| 328 | //---------------------------------------------------------------------------- |
| 329 | void vtkGhostCellsGenerator::UpdateCache(vtkDataObject* updatedOutput) |
no test coverage detected