RemoveExtent in vtkImageStencilData is incorrect
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If there are two entries( clist[k], clist[k+1]) need to be removed, only one can be deleted.
I think k should not be increased after remove one entry. Please review those codes: 682 int length = clistlen; 683 for (int k = 0; k < length; k += 2) 684 { 685 if (r1 <= clist[k] && r2 >= (clist[k+1]-1)) 686 { ...
also if r1>clist[k] and r2>=clist[k+1], i think we should update entry as clist[k+1] = r1.