| 38 | namespace |
| 39 | { |
| 40 | void 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 | |
| 62 | void CollectArray(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* arraySource, |
| 63 | vtkAbstractArray* arrayDest, int& count) |
no test coverage detected