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

Method ClipGridCells

Filters/ParallelGeometry/vtkPDistributedDataFilter.cxx:600–622  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

598
599//------------------------------------------------------------------------------
600int 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//------------------------------------------------------------------------------
625vtkUnstructuredGrid* vtkPDistributedDataFilter::AcquireGhostCells(vtkUnstructuredGrid* grid)

Callers 1

RequestDataInternalMethod · 0.95

Calls 5

GetGlobalNodeIdArrayMethod · 0.95
SetGlobalIdsMethod · 0.80
GetNumberOfCellsMethod · 0.45
GetPointDataMethod · 0.45

Tested by

no test coverage detected