[vtkusers] SetDataSpacing = SetSpacing ?

John Drescher drescherjm at gmail.com
Wed Jun 2 19:48:53 EDT 2010


On Wed, Jun 2, 2010 at 7:17 PM, Chris Turner
<cturnercomplex at googlemail.com> wrote:
> Hi,
>
> I noticed that in the Medical4 example the spacing of the CT Image is
> set in the vtkVolume16Reader object with the method SetDataSpacing. If
> I want to change the spacing of the CT Image after I loaded it can I
> do that with the SetSpacing method on a vtkImageData object? Do those
> have the same effect?
>
> Because for some reason changes at the spacing of the vtkImagaData
> seems to have no impact on the displyed rendered volume...
>
> Anybody knows why?
>

I believe you are supposed to use vtkImageChangeInformation for this.

John



More information about the vtkusers mailing list