------------------------------------------------------------------------------
| 260 | |
| 261 | //------------------------------------------------------------------------------ |
| 262 | void vtkKdTree::DeleteCellLists() |
| 263 | { |
| 264 | int i; |
| 265 | int num = this->CellList.nRegions; |
| 266 | |
| 267 | delete[] this->CellList.regionIds; |
| 268 | |
| 269 | if (this->CellList.cells) |
| 270 | { |
| 271 | for (i = 0; i < num; i++) |
| 272 | { |
| 273 | this->CellList.cells[i]->Delete(); |
| 274 | } |
| 275 | |
| 276 | delete[] this->CellList.cells; |
| 277 | } |
| 278 | |
| 279 | if (this->CellList.boundaryCells) |
| 280 | { |
| 281 | for (i = 0; i < num; i++) |
| 282 | { |
| 283 | this->CellList.boundaryCells[i]->Delete(); |
| 284 | } |
| 285 | delete[] this->CellList.boundaryCells; |
| 286 | } |
| 287 | |
| 288 | if (this->CellList.emptyList) |
| 289 | { |
| 290 | this->CellList.emptyList->Delete(); |
| 291 | } |
| 292 | |
| 293 | this->InitializeCellLists(); |
| 294 | } |
| 295 | |
| 296 | //------------------------------------------------------------------------------ |
| 297 | vtkKdTree::~vtkKdTree() |
no test coverage detected