| 143 | } |
| 144 | |
| 145 | void CopyArrayValues(vtkHyperTreeGridNonOrientedCursor* inCursor, |
| 146 | vtkHyperTreeGridNonOrientedCursor* outCursor, vtkBitArray* outMask, vtkAbstractArray* sourceArray, |
| 147 | vtkAbstractArray* destArray) |
| 148 | { |
| 149 | outMask->InsertValue(outCursor->GetGlobalNodeIndex(), inCursor->IsMasked()); |
| 150 | |
| 151 | if (inCursor->IsMasked()) |
| 152 | { |
| 153 | return; |
| 154 | } |
| 155 | |
| 156 | destArray->SetTuple(outCursor->GetGlobalNodeIndex(), inCursor->GetGlobalNodeIndex(), sourceArray); |
| 157 | |
| 158 | if (!inCursor->IsLeaf()) |
| 159 | { |
| 160 | for (int ichild = 0; ichild < inCursor->GetNumberOfChildren(); ++ichild) |
| 161 | { |
| 162 | inCursor->ToChild(ichild); |
| 163 | outCursor->ToChild(ichild); |
| 164 | |
| 165 | ::CopyArrayValues(inCursor, outCursor, outMask, sourceArray, destArray); |
| 166 | |
| 167 | inCursor->ToParent(); |
| 168 | outCursor->ToParent(); |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Get the number of bytes required to fit `nbBits`. |
no test coverage detected