From: apo Date: Thu, 13 Apr 2006 15:07:36 +0000 (+0000) Subject: To use vtkFloatingPointType instead of bare "float" X-Git-Tag: T3_2_0b1_pre1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b146e06a47afe020bb74f3ff3efa15cb3daa4be;p=modules%2Fgui.git To use vtkFloatingPointType instead of bare "float" --- diff --git a/src/VTKViewer/VTKViewer_Actor.cxx b/src/VTKViewer/VTKViewer_Actor.cxx index 434f24cbc..4c83a2774 100755 --- a/src/VTKViewer/VTKViewer_Actor.cxx +++ b/src/VTKViewer/VTKViewer_Actor.cxx @@ -413,14 +413,14 @@ VTKViewer_Actor if(myIsInfinite) return true; - static float MAX_DISTANCE = 0.9*VTK_LARGE_FLOAT; - float aBounds[6]; + static vtkFloatingPointType MAX_DISTANCE = 0.9*VTK_LARGE_FLOAT; + vtkFloatingPointType aBounds[6]; GetBounds(aBounds); for(int i = 0; i < 6; i++) if(fabs(aBounds[i]) > MAX_DISTANCE) return true; - static float MIN_DISTANCE = 1.0/VTK_LARGE_FLOAT; + static vtkFloatingPointType MIN_DISTANCE = 1.0/VTK_LARGE_FLOAT; if(GetLength() < MIN_DISTANCE) return true;