vtkCubeAxesActor2D: Axes are not displayed correctly when zoomed in
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The bug is better described with two images: The first image in http://www.simcore.com/Image1.jpg shows a topographical surface with the correct axes created by using vtkCubeAxesActor2D. The scaling of the vtkCubeAxesActor2D object is off.
The second image in http://www.simcore.com/Image2.jpg shows two incorrected displayed axes when zoomed into the center of the bounding box of the topographical surface.
After some research, I found that the call to viewport->WorldToDisplay(); in vtkCubeAxesActor2D::TransformBounds(...) does not yield the correct values.
At a closer look, I found that the call to viewport->WorldToView(); in the function vtkViewport::WorldToDisplay does not yield correct viewPoint coordinates when the world points are far off the viewport and eventually the viewpoint coordinates incorrectly change sign (probably integer overflow?).
The program what creates the images are running on XP. Compiled with Visual C++ 6.0 and coupled with Qt.
Eric Chiang