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

Method FreeSearchStructure

Common/DataModel/vtkOctreePointLocator.cxx:984–1002  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

982
983//------------------------------------------------------------------------------
984void 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------------

Callers 2

BuildLocatorInternalMethod · 0.95

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected