vtkActor::GetBounds returns unitialized bounds when no mapper is connected
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The code for vtkActor::GetBounds blindly returns the actor's Bounds as the bounds, and doesn't check to see if it is initialized or not.
There is a check in the mapper code to see if the mapper's bounds are initialized. if not, then it returns a null pointer to bounds.
I believe that a null bounds should be returned if there is no mapper, and the actor's bounds are unitialized.
This has consequences for vtkAssembly::GetBounds because the assembly does not check for null pointer return on the child GetBounds calls.
Thus, if you include an actor in an assembly that does not have a mapper, then the values -1, and 1 will be included in the collective bounds calculation for the assembly, thus returning incorrect bounds.