------------------------------------------------------------------------------
| 3837 | |
| 3838 | //------------------------------------------------------------------------------ |
| 3839 | vtkIdList* 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 | //------------------------------------------------------------------------------ |
| 3869 | vtkIdList* vtkKdTree::GetCellList(int regionID) |
no outgoing calls
no test coverage detected