------------------------------------------------------------------------------
| 2436 | |
| 2437 | //------------------------------------------------------------------------------ |
| 2438 | vtkUnstructuredGrid* vtkPDistributedDataFilter::ExtractCells( |
| 2439 | vtkIdList* cells, int deleteCellLists, vtkDataSet* in) |
| 2440 | { |
| 2441 | TimeLog timer("ExtractCells(1)", this->Timing); |
| 2442 | (void)timer; |
| 2443 | |
| 2444 | vtkIdList* tempCellList = nullptr; |
| 2445 | |
| 2446 | if (cells == nullptr) |
| 2447 | { |
| 2448 | // We'll get a zero cell unstructured grid which matches the input grid |
| 2449 | tempCellList = vtkIdList::New(); |
| 2450 | } |
| 2451 | else |
| 2452 | { |
| 2453 | tempCellList = cells; |
| 2454 | } |
| 2455 | |
| 2456 | vtkUnstructuredGrid* subGrid = |
| 2457 | vtkPDistributedDataFilter::ExtractCells(&tempCellList, 1, deleteCellLists, in); |
| 2458 | |
| 2459 | if (tempCellList != cells) |
| 2460 | { |
| 2461 | tempCellList->Delete(); |
| 2462 | } |
| 2463 | |
| 2464 | return subGrid; |
| 2465 | } |
| 2466 | |
| 2467 | //------------------------------------------------------------------------------ |
| 2468 | vtkUnstructuredGrid* vtkPDistributedDataFilter::ExtractCells( |
no test coverage detected