Commit df6c0d9f authored by Will Schroeder's avatar Will Schroeder
Browse files

BUG:Fixed integer conversion warning

parent 51b26418
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "vtkRenderWindowInteractor.h" #include "vtkRenderWindowInteractor.h"
#include "vtkFollower.h" #include "vtkFollower.h"
vtkCxxRevisionMacro(vtkQuadricLODActor, "1.3"); vtkCxxRevisionMacro(vtkQuadricLODActor, "1.4");
vtkStandardNewMacro(vtkQuadricLODActor); vtkStandardNewMacro(vtkQuadricLODActor);
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
...@@ -200,7 +200,8 @@ void vtkQuadricLODActor::Render(vtkRenderer *ren, vtkMapper *vtkNotUsed(m)) ...@@ -200,7 +200,8 @@ void vtkQuadricLODActor::Render(vtkRenderer *ren, vtkMapper *vtkNotUsed(m))
{ {
if (frameRate >= FPSTable[i] && frameRate <= FPSTable[i+1] ) if (frameRate >= FPSTable[i] && frameRate <= FPSTable[i+1] )
{ {
dim = DIMTable[i] + (frameRate-FPSTable[i])/(FPSTable[i+1]-FPSTable[i]) * (DIMTable[i+1]-DIMTable[i]); dim = static_cast<int>((DIMTable[i] +
(frameRate-FPSTable[i])/(FPSTable[i+1]-FPSTable[i]) * (DIMTable[i+1]-DIMTable[i])));
break; break;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment