[vtkusers] Widget Bounds Initialization Error?

C C cclist at gmail.com
Tue Jan 10 17:02:03 EST 2006


Hello - When instantiating and placing a boxWidget, I noticed the
initial bounds hold what appears to be an erroneous value for the yMax
parameter.  yMax comes out to be approx 1Billion (1080290304) while
the other 5 parameter values are 0.

For testing purposes, I've added the following code within
vtkBoxWidget.cxx's GetTransform() method (line 1,234):

///////////////////////////
double bounds[6];

this->Prop3D->GetBounds(bounds);
ATLTRACE("GetBounds: [%d, %d] [%d, %d] [%d, %d]\n",
bounds[0], bounds[1], bounds[2],
bounds[3], bounds[4], bounds[5]);
////////////////////

this, when called, results in output of:
"GetBounds: [0, 0] [0, 1080290304] [0, 0]"
upon the first calculation

  Anyone have an idea as to what may be causing this?  Is this a vtk bug?

CC



More information about the vtkusers mailing list