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

Function CountTreeCells

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:40–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace
39{
40void CountTreeCells(vtkHyperTreeGridNonOrientedCursor* cursor, int& countCells, int& countMask)
41{
42 countMask++;
43
44 if (cursor->IsMasked())
45 {
46 return;
47 }
48
49 countCells++;
50
51 if (!cursor->IsLeaf())
52 {
53 for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild)
54 {
55 cursor->ToChild(ichild);
56 ::CountTreeCells(cursor, countCells, countMask);
57 cursor->ToParent();
58 }
59 }
60}
61
62void CollectArray(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* arraySource,
63 vtkAbstractArray* arrayDest, int& count)

Callers 1

Calls 5

IsMaskedMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected