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

Method ComputeMyRegionBounds

Filters/ParallelGeometry/vtkPDistributedDataFilter.cxx:735–755  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

733
734//------------------------------------------------------------------------------
735void vtkPDistributedDataFilter::ComputeMyRegionBounds()
736{
737 delete[] this->ConvexSubRegionBounds;
738 this->ConvexSubRegionBounds = nullptr;
739
740 vtkIntArray* myRegions = vtkIntArray::New();
741
742 this->Kdtree->GetRegionAssignmentList(this->MyId, myRegions);
743
744 if (myRegions->GetNumberOfTuples() > 0)
745 {
746 this->NumConvexSubRegions =
747 this->Kdtree->MinimalNumberOfConvexSubRegions(myRegions, &this->ConvexSubRegionBounds);
748 }
749 else
750 {
751 this->NumConvexSubRegions = 0;
752 }
753
754 myRegions->Delete();
755}
756
757//------------------------------------------------------------------------------
758int vtkPDistributedDataFilter::CheckFieldArrayTypes(vtkDataSet* set)

Callers 4

FindGlobalPointIdsMethod · 0.95
InMySpatialRegionMethod · 0.95

Calls 5

DeleteMethod · 0.65
NewFunction · 0.50
GetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected