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

Method IsLeaf

Common/DataModel/vtkHyperTree.cxx:471–477  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

469
470//---------------------------------------------------------------------------
471bool vtkHyperTree::IsLeaf(vtkIdType index) const
472{
473 assert("pre: valid_range" && index >= 0 && index < this->Datas->NumberOfVertices);
474 return static_cast<unsigned long>(index) >= this->Datas->ParentToElderChild.size() ||
475 this->Datas->ParentToElderChild[index] == std::numeric_limits<unsigned int>::max() ||
476 this->Datas->NumberOfVertices == 1;
477}
478
479//---------------------------------------------------------------------------
480void vtkHyperTree::ComputeBreadthFirstOrderDescriptorImpl(const unsigned int depthLimiter,

Callers 2

SubdivideLeafMethod · 0.95

Calls 3

assertFunction · 0.50
maxFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected