------------------------------------------------------------------------------
| 606 | |
| 607 | //------------------------------------------------------------------------------ |
| 608 | void vtkHyperTreeGridRedistribute::CollectLocalTreeIds() |
| 609 | { |
| 610 | vtkNew<vtkHyperTreeGridNonOrientedCursor> cursor; |
| 611 | vtkHyperTreeGrid::vtkHyperTreeGridIterator inputIterator; |
| 612 | vtkIdType inTreeIndex = 0; |
| 613 | this->InputHTG->InitializeTreeIterator(inputIterator); |
| 614 | |
| 615 | vtkIdType numLocalTrees = this->InputHTG->GetNumberOfNonEmptyTrees(); |
| 616 | this->LocalTreeIds.resize(numLocalTrees); |
| 617 | |
| 618 | vtkIdType treeCount = 0; |
| 619 | while (inputIterator.GetNextTree(inTreeIndex)) |
| 620 | { |
| 621 | this->InputHTG->InitializeNonOrientedCursor(cursor, inTreeIndex); |
| 622 | if (cursor->HasTree()) |
| 623 | { |
| 624 | this->LocalTreeIds[treeCount++] = inTreeIndex; |
| 625 | } |
| 626 | } |
| 627 | } |
| 628 | //------------------------------------------------------------------------------ |
| 629 | void vtkHyperTreeGridRedistribute::BuildTargetPartMap() |
| 630 | { |
no test coverage detected