[vtk-developers] vtkImageIterator: please...
Mathieu.Malaterre at creatis.insa-lyon.fr
Tue May 20 09:34:37 EDT 2003
I am very sorry to bug you with such a simple problem, but I really
don't understand what's wrong. This is my last attempt, I promised not
to bug any of you again with this problem.
As I didn't get no answer from my mails (*), I assume there is
something I am doing wrong. Could someone told me why the segmentation
fault I had with my program could not be fixed with the code I proposed
this->SpanEndPointer += this->ContinuousIncrements;
And the complete version is:
template <class DType>
this->Pointer += this->Increments;
this->SpanEndPointer += this->Increments;
if (this->Pointer >= this->SliceEndPointer)
this->Pointer += this->ContinuousIncrements;
this->SpanEndPointer += this->ContinuousIncrements; //<- here
this->SliceEndPointer += this->Increments;
If you don't have time to answer, could you just point me out some
documentations about how 'extents' are handle internally in VTK (showing
that I don't need to update SpanEndPointer).
Thanks a lot,
More information about the vtk-developers