MCPcopy Create free account
hub / github.com/Kitware/VTK / DeleteCellLists

Method DeleteCellLists

Common/DataModel/vtkKdTree.cxx:262–294  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

260
261//------------------------------------------------------------------------------
262void 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//------------------------------------------------------------------------------
297vtkKdTree::~vtkKdTree()

Callers 3

~vtkKdTreeMethod · 0.95
FreeSearchStructureMethod · 0.95
CreateCellListsMethod · 0.95

Calls 2

InitializeCellListsMethod · 0.95
DeleteMethod · 0.65

Tested by

no test coverage detected