| 60 | } |
| 61 | |
| 62 | void CollectArray(vtkHyperTreeGridNonOrientedCursor* cursor, vtkAbstractArray* arraySource, |
| 63 | vtkAbstractArray* arrayDest, int& count) |
| 64 | { |
| 65 | if (cursor->IsMasked()) |
| 66 | { |
| 67 | return; |
| 68 | } |
| 69 | |
| 70 | arrayDest->SetTuple(count++, cursor->GetGlobalNodeIndex(), arraySource); |
| 71 | |
| 72 | if (!cursor->IsLeaf()) |
| 73 | { |
| 74 | for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild) |
| 75 | { |
| 76 | cursor->ToChild(ichild); |
| 77 | ::CollectArray(cursor, arraySource, arrayDest, count); |
| 78 | cursor->ToParent(); |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void CollectMask(vtkHyperTreeGridNonOrientedCursor* cursor, vtkBitArray* maskBuffer, int& offset) |
| 84 | { |
no test coverage detected