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

Method GetList

Common/DataModel/vtkKdTree.cxx:3839–3866  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3837
3838//------------------------------------------------------------------------------
3839vtkIdList* vtkKdTree::GetList(int regionId, vtkIdList** which)
3840{
3841 int i;
3842 struct cellList_* list = &this->CellList;
3843 vtkIdList* cellIds = nullptr;
3844
3845 if (which && (list->nRegions == this->NumberOfRegions))
3846 {
3847 cellIds = which[regionId];
3848 }
3849 else if (which)
3850 {
3851 for (i = 0; i < list->nRegions; i++)
3852 {
3853 if (list->regionIds[i] == regionId)
3854 {
3855 cellIds = which[i];
3856 break;
3857 }
3858 }
3859 }
3860 else
3861 {
3862 cellIds = list->emptyList;
3863 }
3864
3865 return cellIds;
3866}
3867
3868//------------------------------------------------------------------------------
3869vtkIdList* vtkKdTree::GetCellList(int regionID)

Callers 2

GetCellListMethod · 0.95
GetBoundaryCellListMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected