[vtkusers] updating imagedata spacing

Richard Layman mdl_126 at hotmail.com
Tue Mar 28 14:47:04 EST 2006


I have a vtkExtractVOI object in my code and its VOI is updated on user 
interaction, at which time I also change the spacing of the output image 
data as follows:

extractvoi.SetVOI(new_voi)
extractvoi.GetOutput().SetUpdateExtent(new_voi)
extractvoi.Update()
extractvoi.GetOutput().SetSpacing(new_spacing)

It works under 4.2 but it fails to update the spacing with VTK5.0. How 
should this be modified to work with 5.0? Thanks.

Richard

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




More information about the vtkusers mailing list