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

Method ComputeBounds

Common/DataModel/vtkHyperTreeGrid.cxx:1672–1693  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1670
1671//------------------------------------------------------------------------------
1672void 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//------------------------------------------------------------------------------
1696double* vtkHyperTreeGrid::GetBounds()

Callers 1

GetBoundsMethod · 0.95

Calls 9

GetNextTreeMethod · 0.80
AddBoxMethod · 0.80
GetMTimeMethod · 0.45
IsMaskedMethod · 0.45
GetBoundsMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected