[vtkusers] vtkBoxWidget::Points values change between Debug and Release mode
Amélie Thery
theryame at gmail.com
Thu Jan 7 10:09:16 EST 2016
Hi everybody,
I am using vtkBoxWidget, and I use Points to control it size.
I defined a public function vtkPoints * GetPoints(){return Points;}to
access this protected member.
For example, when my vtkBoxWidget is defined by
{-1,0,0,
1,0,0,
1,0,1,
-1,0,1,
-1,1,0,
1,1,0,
1,1,1,
-1,1,1}
with one face under 0 and the opposite over 0 in x-axis,
I do:
vtkPoints* pts=GetPoints();
double a[3],b[3];
pts->GetPoint(0,a); //face under 0
pts->GetPoint(2,b); //face over 0
In debug mode, a[0]= -1 and b[0]= 1 as it is supposed to be,
In release mode, a[0]= 1 and b[0]= 1 so I can not check the size of the box.
I didn't change anything between both tests, if anyone has any idea it
would be grateful :)
Thank you for reading,
Amélie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160107/dc62e903/attachment.html>
More information about the vtkusers
mailing list