Commit 08952a59 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Compute bounds only when needed

Change-Id: I28327cf1a30a2a0d978a02bf1092313b6a751c23
parent 7b92333a
......@@ -450,15 +450,14 @@ double *vtkPolarAxesActor::GetBounds()
//-----------------------------------------------------------------------------
void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
{
double bounds[6];
if ( ( this->GetMTime() < this->BuildTime.GetMTime() ))
{
this->AutoScale( viewport );
return;
}
// Determine the bounds for possible use ( input, prop, or user-defined )
// Determine the bounds
double bounds[6];
this->GetBounds( bounds );
// If pole coordinates are invalid, use bounds
......
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