| 175 | } |
| 176 | |
| 177 | void TripAll(vtkHyperTreeGrid* htGrid) |
| 178 | { |
| 179 | // First pass across tree roots to evince cells intersected by contours |
| 180 | vtkHyperTreeGrid::vtkHyperTreeGridIterator it; |
| 181 | htGrid->InitializeTreeIterator(it); |
| 182 | vtkIdType crtTreeIndex = 0; |
| 183 | vtkIdType crtOffsetTree = 0; |
| 184 | (void)crtOffsetTree; // used in an `assert`. |
| 185 | while (it.GetNextTree(crtTreeIndex)) // Masked or non |
| 186 | { |
| 187 | assert(crtTreeIndex == crtOffsetTree || |
| 188 | GuruMeditation("This missed cell " + vtk::to_string(crtOffsetTree) + " isn't possible.")); |
| 189 | ++crtOffsetTree; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | // Trip HTG tests |
| 194 | // htGrid : instance of HYperTreeGrid |
no test coverage detected