Commit ce74643b authored by Bengt Rosenberger's avatar Bengt Rosenberger
Browse files

Fixed data rounding issue for int data

parent 51c49664
......@@ -106,7 +106,9 @@ void vtkDataArrayInterpolateTuple(Iterator from1, Iterator from2, Scalar* to,
const double oneMinusT = 1.0 - t;
while (numComp-- > 0)
{
*(to++) = static_cast<Scalar>(oneMinusT * (*(from1++)) + t * (*(from2++)));
double c = oneMinusT * (*(from1++)) + t * (*(from2++));
// Round integer types. Don't round floating point types.
vtkDataArrayRoundIfNecessary(c, &(*(to++)));
}
}
......
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