MantisBT - VTK
View Issue Details
0013970VTK(No Category)public2013-03-25 13:342014-10-02 12:40
Laurence Griffiths 
Will Schroeder 
normalminorhave not tried
closedfixed 
5.10.1 
 
TBD
incorrect functionality
0013970: GetBounds not consistant between vtkBox and vtkBlock
using the vtk python interface, vtkBox.GetBounds does not work with zero inputs

Calling:
bounds=vtkBox.GetBounds()
returns the error: "no overloads to GetBounds() take 0 arguments.

I would expect it to be consistant with:
vtkMultiBlockDataSet.GetBlock(0).GetBounds()
Which works with zero inputs to GetBounds

The alternative in python is messy:
bounds=[0,0,0,0,0,0] #or some other initialisation
vtkBox.GetBounds(bounds)

hackaton
Issue History
2013-03-25 13:34Laurence GriffithsNew Issue
2013-06-25 12:44Dave DeMarleNote Added: 0031051
2014-10-01 17:34Sean McBrideTag Attached: hackaton
2014-10-01 17:34Sean McBrideNote Added: 0033400
2014-10-02 09:32Will SchroederAssigned To => Will Schroeder
2014-10-02 11:42Will SchroederNote Added: 0033471
2014-10-02 11:42Will SchroederStatusbacklog => active development
2014-10-02 12:34Will SchroederNote Added: 0033479
2014-10-02 12:34Will SchroederStatusactive development => gerrit review
2014-10-02 12:40Will SchroederNote Added: 0033480
2014-10-02 12:40Will SchroederStatusgerrit review => closed
2014-10-02 12:40Will SchroederResolutionopen => fixed

Notes
(0031051)
Dave DeMarle   
2013-06-25 12:44   
Please add that signature to vtkBox and submit the patch via gerrit for automated testing and review.
For details on how to do so see http://www.vtk.org/Wiki/VTK/Git/Develop [^]
(0033400)
Sean McBride   
2014-10-01 17:34   
Perhaps I'm confused… but vtkBox already has a "double *GetBounds();" method… so what's missing here?
(0033471)
Will Schroeder   
2014-10-02 11:42   
Needed to add vtkBox::GetBounds() in wrapping "hints" file.
(0033479)
Will Schroeder   
2014-10-02 12:34   
http://review.source.kitware.com/#/t/4764 [^]
(0033480)
Will Schroeder   
2014-10-02 12:40   
Merged through gerrit (thanks Bill!)