MCPcopy Create free account
hub / github.com/Kitware/VTK / ExtractZeroCellGrid

Method ExtractZeroCellGrid

Filters/ParallelGeometry/vtkPDistributedDataFilter.cxx:2510–2532  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2508
2509//------------------------------------------------------------------------------
2510vtkUnstructuredGrid* 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

Callers 2

Calls 7

DeleteMethod · 0.65
NewFunction · 0.50
NewInstanceMethod · 0.45
ShallowCopyMethod · 0.45
SetInputDataMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected