[vtkusers] vtkRectilinearGridGeometryFilter
Amy Henderson
amy.henderson at kitware.com
Tue Mar 23 14:05:13 EST 2004
Hi Vetria,
From the header file, vtkRectilinearGridGeometryFilter.h:
// Description:
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices.
void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin, int kMax);
// Description:
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array form.
void SetExtent(int extent[6]);
To extract a plane, the min and max values in one of the i, j, or k
directions must be the same. For example (from RGrid.cxx):
plane->SetExtent(0,46, 16,16, 0,43);
To instead extract a volume, make sure that the min and max values are not
the same. For example:
plane->SetExtent(0,46, 3,16, 0,43);
- Amy
At 01:41 PM 3/23/2004, Vetria Byrd wrote:
>Can anyone point me in the direction of an example that demonstrates how
>to extract a "volume" from a rectilinear grid using
>vtkRectilinearGridGeometryFilter?
>I have viewed and I am able to run the RGrid.cxx example which shows how
>to extract a plane.
>The vtkRectilinearGridGeometryFilter Class reference states by specifying
>appropriate i-j-k indices, it is possible to extract a volume.
>And example would be helpful.
>
>Thanks in advance for your help.
>
>_______________
>Vetria L. Byrd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040323/e43967f6/attachment.htm>
More information about the vtkusers
mailing list