| 1824 | namespace |
| 1825 | { |
| 1826 | void MarkEntireTreeAsGhost( |
| 1827 | vtkHyperTreeGridNonOrientedCursor* cursor, vtkUnsignedCharArray* ghostCells) |
| 1828 | { |
| 1829 | vtkIdType id = cursor->GetGlobalNodeIndex(); |
| 1830 | unsigned char val = ghostCells->GetValue(id) | vtkDataSetAttributes::DUPLICATECELL; |
| 1831 | ghostCells->SetValue(id, val); |
| 1832 | |
| 1833 | if (!cursor->IsLeaf()) |
| 1834 | { |
| 1835 | for (unsigned int c = 0; c < cursor->GetNumberOfChildren(); ++c) |
| 1836 | { |
| 1837 | cursor->ToChild(c); |
| 1838 | ::MarkEntireTreeAsGhost(cursor, ghostCells); |
| 1839 | cursor->ToParent(); |
| 1840 | } |
| 1841 | } |
| 1842 | } |
| 1843 | } |
| 1844 | |
| 1845 | //------------------------------------------------------------------------------ |
no test coverage detected