------------------------------------------------------------------------------
| 2508 | |
| 2509 | //------------------------------------------------------------------------------ |
| 2510 | vtkUnstructuredGrid* vtkPDistributedDataFilter::ExtractZeroCellGrid(vtkDataSet* in) |
| 2511 | { |
| 2512 | TimeLog timer("ExtractZeroCellGrid", this->Timing); |
| 2513 | (void)timer; |
| 2514 | |
| 2515 | vtkDataSet* tmpInput = in->NewInstance(); |
| 2516 | tmpInput->ShallowCopy(in); |
| 2517 | |
| 2518 | vtkExtractCells* extCells = vtkExtractCells::New(); |
| 2519 | |
| 2520 | extCells->SetInputData(tmpInput); |
| 2521 | |
| 2522 | extCells->Update(); // extract no cells |
| 2523 | |
| 2524 | vtkUnstructuredGrid* keepGrid = vtkUnstructuredGrid::New(); |
| 2525 | keepGrid->ShallowCopy(extCells->GetOutput()); |
| 2526 | |
| 2527 | extCells->Delete(); |
| 2528 | |
| 2529 | tmpInput->Delete(); |
| 2530 | |
| 2531 | return keepGrid; |
| 2532 | } |
| 2533 | |
| 2534 | //------------------------------------------------------------------------------ |
| 2535 |
no test coverage detected