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

Method BuildLeafNodeList

Common/DataModel/vtkOctreePointLocator.cxx:429–443  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

427
428//------------------------------------------------------------------------------
429void vtkOctreePointLocator::BuildLeafNodeList(vtkOctreePointLocatorNode* node, int& index)
430{
431 if (node->GetChild(0))
432 {
433 for (int i = 0; i < 8; i++)
434 {
435 this->BuildLeafNodeList(node->GetChild(i), index);
436 }
437 }
438 else
439 {
440 this->LeafNodeList[index] = node;
441 index++;
442 }
443}
444
445//------------------------------------------------------------------------------
446vtkIdType vtkOctreePointLocator::FindClosestPoint(const double x[3])

Callers 1

BuildLocatorInternalMethod · 0.95

Calls 1

GetChildMethod · 0.45

Tested by

no test coverage detected