]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To use vtkFloatingPointType instead of bare "float"
authorapo <apo@opencascade.com>
Thu, 13 Apr 2006 15:07:36 +0000 (15:07 +0000)
committerapo <apo@opencascade.com>
Thu, 13 Apr 2006 15:07:36 +0000 (15:07 +0000)
src/VTKViewer/VTKViewer_Actor.cxx

index 434f24cbc2e89aaebf12d0fb42950aa903c170b9..4c83a27746e17a62e986f7ff473552806b3f4707 100755 (executable)
@@ -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;