------------------------------------------------------------------------------
| 118 | |
| 119 | //------------------------------------------------------------------------------ |
| 120 | void vtkPointLocator::FreeSearchStructure() |
| 121 | { |
| 122 | vtkIdList* ptIds; |
| 123 | vtkIdType i; |
| 124 | |
| 125 | if (this->HashTable) |
| 126 | { |
| 127 | for (i = 0; i < this->NumberOfBuckets; i++) |
| 128 | { |
| 129 | if ((ptIds = this->HashTable[i])) |
| 130 | { |
| 131 | ptIds->Delete(); |
| 132 | } |
| 133 | } |
| 134 | delete[] this->HashTable; |
| 135 | this->HashTable = nullptr; |
| 136 | } |
| 137 | |
| 138 | // The hash table has been invalidated. |
| 139 | // Reset the variables calculated from the dataset to their original values defined in the |
| 140 | // constructor. |
| 141 | vtkMath::UninitializeBounds(this->Bounds); |
| 142 | this->H[0] = this->H[1] = this->H[2] = 0.0; |
| 143 | this->Divisions[0] = this->Divisions[1] = this->Divisions[2] = 50; |
| 144 | } |
| 145 | |
| 146 | //------------------------------------------------------------------------------ |
| 147 | // Initialize internal performance variables |
no test coverage detected