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

Method BuildRegionList

Common/DataModel/vtkKdTree.cxx:1652–1666  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1650
1651//------------------------------------------------------------------------------
1652void vtkKdTree::BuildRegionList()
1653{
1654 SCOPETIMER("BuildRegionList");
1655
1656 if (this->Top == nullptr)
1657 {
1658 return;
1659 }
1660
1661 this->NumberOfRegions = vtkKdTree::SelfOrder(0, this->Top);
1662
1663 this->RegionList = new vtkKdNode*[this->NumberOfRegions];
1664
1665 this->SelfRegister(this->Top);
1666}
1667
1668//------------------------------------------------------------------------------
1669// K-d tree from points, for finding duplicate and near-by points

Callers 3

BuildLocatorInternalMethod · 0.95
BuildLocatorMethod · 0.45

Calls 1

SelfRegisterMethod · 0.95

Tested by

no test coverage detected