View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004507VTK(No Category)public2007-02-27 16:342016-08-12 09:54
ReporterBill McGrory 
Assigned ToSebastien Barre 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004507: vtkActor::GetBounds returns unitialized bounds when no mapper is connected
DescriptionThe 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.
TagsNo tags attached.
Attached Filespatch file icon vtkActor.cxx.patch [^] (641 bytes) 1969-12-31 19:00 [Show Content]
patch file icon vtkAssembly.cxx.patch [^] (2,845 bytes) 1969-12-31 19:00 [Show Content]


Bill McGrory (reporter)
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
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-02-06 10:12 Jeff Baumes Assigned To Will Schroeder => Sebastien Barre
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036906
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved

Copyright © 2000 - 2018 MantisBT Team