Commit 718c7416 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

BUG: - Fixed a VC6 compilation problem (scoping of i in a for-loop).

parent efcf6759
......@@ -19,7 +19,7 @@
#include <time.h>
vtkCxxRevisionMacro(vtkParametricRandomHills, "1.4");
vtkCxxRevisionMacro(vtkParametricRandomHills, "1.5");
vtkStandardNewMacro(vtkParametricRandomHills);
vtkParametricRandomHills::vtkParametricRandomHills() :
......@@ -74,6 +74,7 @@ double vtkParametricRandomHills::Rand ( void )
void vtkParametricRandomHills::Evaluate(double uvw[3], double Pt[3], double Duvw[9])
{
int i;
double u = uvw[0];
double v = uvw[1];
double *Du = Duvw;
......@@ -118,7 +119,8 @@ void vtkParametricRandomHills::GenerateTheHills( void )
// Generate the centers of the Hills, standard deviations and amplitudes.
InitSeed(this->RandomSeed);
for ( int i = 0; i < this->NumberOfHills; ++ i )
int i;
for ( i = 0; i < this->NumberOfHills; ++ i )
{
hillTuple[0] = min_x + Rand() * (MaximumU - MinimumU);
hillTuple[1] = min_y + Rand() * (MaximumV - MinimumV);
......
Markdown is supported
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