Commit fe9aaa63 authored by Ken Martin's avatar Ken Martin
Browse files

minor fix

parent b2d6b57e
......@@ -57,24 +57,10 @@ vtkImageIterator<DType>::vtkImageIterator(vtkImageData *id, int *ext)
this->EndPointer =
(DType *)id->GetScalarPointer(ext[1],ext[3],ext[5]) +this->Increments[0];
// handle y z volumes quickly as well
if (id->GetExtent()[1] == id->GetExtent()[0])
{
this->SpanEndPointer = this->Pointer +
this->Increments[1]*(ext[3] - ext[2] + 1);
this->SliceEndPointer = this->EndPointer;
this->ContinuousIncrements[0] = this->ContinuousIncrements[1];
this->ContinuousIncrements[1] = this->ContinuousIncrements[2];
this->Increments[0] = this->Increments[1];
this->Increments[1] = this->Increments[2];
}
else // normal volumes
{
this->SpanEndPointer =
this->Pointer + this->Increments[0]*(ext[1] - ext[0] + 1);
this->SliceEndPointer =
this->Pointer + this->Increments[1]*(ext[3] - ext[2] + 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