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

Method ExtractCells

Filters/ParallelGeometry/vtkPDistributedDataFilter.cxx:2438–2465  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2436
2437//------------------------------------------------------------------------------
2438vtkUnstructuredGrid* 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//------------------------------------------------------------------------------
2468vtkUnstructuredGrid* vtkPDistributedDataFilter::ExtractCells(

Callers 1

Calls 9

AddCellListMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
ExtractCellsFunction · 0.50
NewInstanceMethod · 0.45
ShallowCopyMethod · 0.45
SetInputDataMethod · 0.45
UpdateMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected