Commit a56b46ae authored by George Zagaris's avatar George Zagaris
Browse files

ENH: Compute bounds based on root AMR box

Added functionality for compute the domain bounds based on the
root AMRR box if available. Otherwise, resort to the superclass
implementation.

Change-Id: I0999ea135136c9b937900505dd3d7de17ebe3f07
parent 476cd3f7
......@@ -1009,6 +1009,21 @@ void vtkOverlappingAMR::CopyStructure( vtkCompositeDataSet *src )
this->Modified();
}
//----------------------------------------------------------------------------
void vtkOverlappingAMR::ComputeBounds()
{
vtkAMRBox rootAMRBox;
if( this->GetRootAMRBox( rootAMRBox ) )
{
rootAMRBox.GetBounds( this->Bounds );
}
else
{
this->Superclass::ComputeBounds();
}
}
//----------------------------------------------------------------------------
unsigned int *vtkOverlappingAMR::
GetParents(unsigned int level, unsigned int index)
......
......@@ -294,6 +294,10 @@ protected:
vtkUnsignedIntArray **dest, vtkUnsignedIntArray *src);
// Description:
// See vtkUniformGridAMR::ComputeBounds
virtual void ComputeBounds();
bool PadCellVisibility;
// Global Origin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment