Commit d0b863fc authored by Andy Wilson's avatar Andy Wilson
Browse files

BUG: Keep track of the highest weight when doing nearest-neighbor interpolation

parent c6ccf359
......@@ -67,7 +67,7 @@ public:
bool Rebuild;
};
vtkCxxRevisionMacro(vtkStringArray, "1.11");
vtkCxxRevisionMacro(vtkStringArray, "1.12");
vtkStandardNewMacro(vtkStringArray);
//-----------------------------------------------------------------------------
......@@ -256,7 +256,8 @@ void vtkStringArray::InterpolateTuple(vtkIdType i, vtkIdList *ptIndices,
{
if (weights[k] > max_weight)
{
nearest = k;
nearest = ptIndices->GetId(k);
max_weight = weights[k];
}
}
......
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