Commit ab713222 authored by David Gobbi's avatar David Gobbi

Remove obsolete WholeExtent check.

This check was needed in VTK 5 for rare cases when the WholeExtent was
smaller than the Extent of the vtkImageData, e.g. after the use of
vtkImageClip. In VTK 6 onwards, vtkImageData no longer has WholeExtent.
parent ea7ea285
......@@ -2054,7 +2054,6 @@ void vtkImageResliceExecute(vtkImageReslice *self,
int componentOffset = interpolator->GetComponentOffset();
int borderMode = interpolator->GetBorderMode();
int *inExt = interpolator->GetExtent();
int *inWholeExt = interpolator->GetWholeExtent();
vtkIdType inInc[3];
inInc[0] = scalars->GetNumberOfComponents();
inInc[1] = inInc[0]*(inExt[1] - inExt[0] + 1);
......@@ -2084,10 +2083,7 @@ void vtkImageResliceExecute(vtkImageReslice *self,
!(newtrans || perspective || convertScalars || rescaleScalars) &&
inputScalarType == outData->GetScalarType() &&
fullSize == scalars->GetNumberOfTuples() &&
self->GetBorder() == 1 && nsamples <= 1 &&
inExt[0] >= inWholeExt[0] && inExt[1] <= inWholeExt[1] &&
inExt[2] >= inWholeExt[2] && inExt[3] <= inWholeExt[3] &&
inExt[4] >= inWholeExt[4] && inExt[5] <= inWholeExt[5])
self->GetBorder() == 1 && nsamples <= 1)
{
optimizeNearest = 1;
}
......
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