vtkAxesActor gives wrong GetBounds when total length is smaller than 1
auto a = vtkSmartPointer<vtkAxesActor>::New();
a->SetTotalLength(0.02, 0.01, 0.02);
// Set the colours and text etc ...
double bds[6];
a->GetBounds(bds);
/*
bds[2] and bds[3] will be -1 and 1
*/
The problem is in double *vtkAxesActor::GetBounds()
function,
double dbounds[6];
(vtkPolyDataMapper::SafeDownCast(this->YAxisShaft->GetMapper()))->
GetInput()->GetBounds( dbounds );
This gives wrong bounds without checking the length.