Commit a1ec3570 authored by Rusty Blue's avatar Rusty Blue
Browse files

ERR: binId was being calculated wrong in HashPoints; the error was only...

ERR:  binId was being calculated wrong in HashPoints; the error was only evident when the NumberOfDivision in X and Y were not equal.
parent 264bdc75
......@@ -24,7 +24,7 @@
#include "vtkTimerLog.h"
#include "vtkTriangle.h"
vtkCxxRevisionMacro(vtkQuadricClustering, "1.66");
vtkCxxRevisionMacro(vtkQuadricClustering, "1.67");
vtkStandardNewMacro(vtkQuadricClustering);
//----------------------------------------------------------------------------
......@@ -771,7 +771,7 @@ vtkIdType vtkQuadricClustering::HashPoint(double point[3])
}
// vary x fastest, then y, then z
binId = xBinCoord + yBinCoord*this->NumberOfDivisions[1] +
binId = xBinCoord + yBinCoord*this->NumberOfDivisions[0] +
zBinCoord*this->SliceSize;
return binId;
......
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