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

Have valid pole coordinates by default

Change-Id: If0381ba601d7f1e21fbbb0a4ac66623c08edcb1c
parent dbfeeb23
......@@ -39,7 +39,6 @@ renderer.SetActiveCamera( camera )
# Create polar axes
polaxes = vtkPolarAxesActor()
polaxes.SetBounds( cylinder.GetOutput().GetBounds() )
polaxes.SetPole( pole )
polaxes.SetAutoScaleRadius( 0 )
polaxes.SetMaximumRadius( 4.5 )
......
......@@ -122,9 +122,9 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
this->Bounds[4] = -1.0; this->Bounds[5] = 1.0;
// Default pole coordinates
this->Pole[0] = VTK_DOUBLE_MAX;
this->Pole[1] = VTK_DOUBLE_MAX;
this->Pole[2] = VTK_DOUBLE_MAX;
this->Pole[0] = 0.;
this->Pole[1] = 0.;
this->Pole[2] = 0.;
// Default number of radial axes
this->NumberOfRadialAxes = VTK_MAXIMUM_NUMBER_OF_RADIAL_AXES;
......@@ -478,17 +478,6 @@ void vtkPolarAxesActor::BuildAxes( vtkViewport *viewport )
return;
}
for ( int i = 0; i < 3; ++ i )
{
if ( this->Pole[i] == VTK_DOUBLE_MAX )
{
// Invalid pole coordinates
vtkWarningMacro( << "Cannot draw radial axes: "
<< " invalid pole." );
return;
}
} // i
// Determine the bounds
double bounds[6];
this->GetBounds( 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