------------------------------------------------------------------------------
| 4672 | |
| 4673 | //------------------------------------------------------------------------------ |
| 4674 | void vtkKdTree::AddAllPointsInRegion(vtkKdNode* node, vtkIdTypeArray* ids) |
| 4675 | { |
| 4676 | if (node->GetLeft() == nullptr) |
| 4677 | { |
| 4678 | int regionID = node->GetID(); |
| 4679 | int regionLoc = this->LocatorRegionLocation[regionID]; |
| 4680 | vtkIdType numPoints = this->RegionList[regionID]->GetNumberOfPoints(); |
| 4681 | for (vtkIdType i = 0; i < numPoints; i++) |
| 4682 | { |
| 4683 | vtkIdType ptId = static_cast<vtkIdType>(this->LocatorIds[regionLoc + i]); |
| 4684 | ids->InsertNextValue(ptId); |
| 4685 | } |
| 4686 | } |
| 4687 | else |
| 4688 | { |
| 4689 | this->AddAllPointsInRegion(node->GetLeft(), ids); |
| 4690 | this->AddAllPointsInRegion(node->GetRight(), ids); |
| 4691 | } |
| 4692 | } |
| 4693 | |
| 4694 | //------------------------------------------------------------------------------ |
| 4695 | void vtkKdTree::AddAllPointsInRegion(vtkKdNode* node, vtkIdList* ids) |
no test coverage detected