[vtkusers] what's wrong with this?

David Doria daviddoria at gmail.com
Mon Aug 20 10:04:58 EDT 2012


On Mon, Aug 20, 2012 at 10:01 AM, 32sthide <32sthide at gmail.com> wrote:
> hi, i can't manage to make this work in C++.
>
> double* sx, double* sy, double* sz=bmp->GetOutput()->GetSpacing();
>
> I want to get something like this code in python:
>
> xMin, xMax, yMin, yMax, zMin, zMax = v16.GetOutput().GetWholeExtent()
>
> spacing = v16.GetOutput().GetSpacing()
> sx, sy, sz = spacing
>
> origin = v16.GetOutput().GetOrigin()
> ox, oy, oz = origin

Is this what you're looking for?

  int extent[6];
  yourObject->GetExtent(extent);

David



More information about the vtkusers mailing list