------------------------------------------------------------------------------
| 598 | |
| 599 | //------------------------------------------------------------------------------ |
| 600 | int vtkPDistributedDataFilter::ClipGridCells(vtkUnstructuredGrid* grid) |
| 601 | { |
| 602 | TimeLog timer("ClipGridCells", this->Timing); |
| 603 | (void)timer; |
| 604 | |
| 605 | if (grid->GetNumberOfCells() == 0) |
| 606 | { |
| 607 | return 0; |
| 608 | } |
| 609 | |
| 610 | // Global point IDs are meaningless after |
| 611 | // clipping, since this tetrahedralizes the whole data set. |
| 612 | // We remove that array. |
| 613 | |
| 614 | if (this->GetGlobalNodeIdArray(grid)) |
| 615 | { |
| 616 | grid->GetPointData()->SetGlobalIds(nullptr); |
| 617 | } |
| 618 | |
| 619 | this->ClipCellsToSpatialRegion(grid); |
| 620 | |
| 621 | return 0; |
| 622 | } |
| 623 | |
| 624 | //------------------------------------------------------------------------------ |
| 625 | vtkUnstructuredGrid* vtkPDistributedDataFilter::AcquireGhostCells(vtkUnstructuredGrid* grid) |
no test coverage detected