<DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>when I update the extents to be clipped using vtkImageClip in a for loop, though I call Update() method explicitly after setting new extents, the getOutput()->GetScalarPointer() always gets the same memory address and the data. Should I do something to request it to update the pipeline in another way?</DIV>
<DIV> </DIV>
<DIV>imageClip->SetInput(imageVolume);</DIV>
<DIV>extents = imageVolume->GetExtent();</DIV>
<DIV> </DIV>
<DIV>for (z = 0; z < zLimit; z++){</DIV>
<DIV> extents[4] = extents[5] = z;</DIV>
<DIV> imageClip->SetOutputWholeExtent(extents);</DIV>
<DIV> imageClip->Update();</DIV>
<DIV> </DIV>
<DIV> //here imageClip->GetOutput()->GetScalarPointer() always returns the same memory address and data.</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Madhu.</DIV><p>
<hr size=1>Do you Yahoo!?<br>
<a href="http://advision.webevents.yahoo.com/yahoo/votelifeengine/">Vote for the stars of Yahoo!'s next ad campaign!</a>