------------------------------------------------------------------------------
| 1670 | |
| 1671 | //------------------------------------------------------------------------------ |
| 1672 | void vtkHyperTreeGrid::ComputeBounds() |
| 1673 | { |
| 1674 | if (this->GetMTime() > this->ComputeTime) |
| 1675 | { |
| 1676 | vtkIdType inIndex; |
| 1677 | vtkHyperTreeGrid::vtkHyperTreeGridIterator it; |
| 1678 | this->InitializeTreeIterator(it); |
| 1679 | vtkBoundingBox mergedBounds; |
| 1680 | while (it.GetNextTree(inIndex)) |
| 1681 | { |
| 1682 | auto cursor = vtk::TakeSmartPointer(this->NewNonOrientedGeometryCursor(inIndex)); |
| 1683 | if (!cursor->IsMasked()) |
| 1684 | { |
| 1685 | vtkBoundingBox bounds; |
| 1686 | ::RecursivelyExpandTreeBounds(cursor, bounds); |
| 1687 | mergedBounds.AddBox(bounds); |
| 1688 | } |
| 1689 | } |
| 1690 | mergedBounds.GetBounds(this->Bounds); |
| 1691 | this->ComputeTime.Modified(); |
| 1692 | } |
| 1693 | } |
| 1694 | |
| 1695 | //------------------------------------------------------------------------------ |
| 1696 | double* vtkHyperTreeGrid::GetBounds() |
no test coverage detected