MantisBT - VTK
View Issue Details
0004507VTK(No Category)public2007-02-27 16:342016-08-12 09:54
Bill McGrory 
Sebastien Barre 
normalmajoralways
closedmoved 
 
 
0004507: vtkActor::GetBounds returns unitialized bounds when no mapper is connected
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.
No tags attached.
patch vtkActor.cxx.patch (641) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5905/vtkActor.cxx.patch
patch vtkAssembly.cxx.patch (2,845) 1969-12-31 19:00
https://www.vtk.org/Bug/file/5906/vtkAssembly.cxx.patch
Issue History
2008-02-06 10:12Jeff BaumesAssigned ToWill Schroeder => Sebastien Barre
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036906
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0006583)
Bill McGrory   
2007-02-28 10:34   
I have uploaded patches for vtkActor.cxx and vtkAssembly.cxx
note the patch for vtkAssembly.cxx is relative to having patches applied from bug 0003312
(0036906)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.