------------------------------------------------------------------------------
| 982 | |
| 983 | //------------------------------------------------------------------------------ |
| 984 | void vtkOctreePointLocator::FreeSearchStructure() |
| 985 | { |
| 986 | if (this->Top) |
| 987 | { |
| 988 | vtkOctreePointLocator::DeleteAllDescendants(this->Top); |
| 989 | this->Top->Delete(); |
| 990 | this->Top = nullptr; |
| 991 | } |
| 992 | delete[] this->LeafNodeList; |
| 993 | this->LeafNodeList = nullptr; |
| 994 | |
| 995 | this->NumberOfLeafNodes = 0; |
| 996 | |
| 997 | delete[] this->LocatorPoints; |
| 998 | this->LocatorPoints = nullptr; |
| 999 | |
| 1000 | delete[] this->LocatorIds; |
| 1001 | this->LocatorIds = nullptr; |
| 1002 | } |
| 1003 | |
| 1004 | //------------------------------------------------------------------------------ |
| 1005 | // build PolyData representation of all spatial regions------------ |
no test coverage detected