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

Method InitializeLocalIndexNode

Common/DataModel/vtkHyperTreeGrid.cxx:1555–1567  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1553
1554//------------------------------------------------------------------------------
1555void vtkHyperTreeGrid::InitializeLocalIndexNode()
1556{
1557 // Iterate over all hyper trees
1558 vtkIdType local = 0;
1559 vtkHyperTree* crtTree = nullptr;
1560 vtkHyperTreeGridIterator it;
1561 this->InitializeTreeIterator(it);
1562 while ((crtTree = it.GetNextTree()))
1563 {
1564 crtTree->SetGlobalIndexStart(local);
1565 local += crtTree->GetNumberOfVertices();
1566 } // it
1567}
1568
1569//=============================================================================
1570// Hyper tree grid iterator

Callers 1

ProcessTreesMethod · 0.80

Calls 4

GetNextTreeMethod · 0.80
GetNumberOfVerticesMethod · 0.80
SetGlobalIndexStartMethod · 0.45

Tested by

no test coverage detected