MCPcopy Create free account
hub / github.com/Kitware/VTK / TripAll

Function TripAll

Filters/Sources/Testing/Cxx/TestRandomHyperTreeGridSource.cxx:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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

Callers 1

TripFunction · 0.85

Calls 5

GuruMeditationFunction · 0.85
GetNextTreeMethod · 0.80
assertFunction · 0.50
to_stringFunction · 0.50

Tested by

no test coverage detected