[vtkusers] Creating an ImageData from the bounds of a PolyData

David Gobbi david.gobbi at gmail.com
Tue Dec 8 15:44:52 EST 2009


On Tue, Dec 8, 2009 at 1:42 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> The Bounds of an image are
>
> bounds = { i_min*Spacing[0] + Origin[0], i_max*Spacing[1] + Origin[1], etc. };

Typo.  I should have typed this:

int extent[6] = { i_min, i_max, j_min, j_max, k_min, k_max };

double bounds[6] = { i_min*Spacing[0] + Origin[0], i_max*Spacing[0] + Origin[0],
  j_min*Spacing[1] + Origin[1], j_max*Spacing[1] + Origin[1],
  k_min*Spacing[2] + Origin[2], k_max*Spacing[2] + Origin[2] };

  David



More information about the vtkusers mailing list