<html>
<body>
Hi Vetria,<br><br>
From the header file, vtkRectilinearGridGeometryFilter.h:<br><br>
// Description:<br>
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices.<br>
void SetExtent(int iMin, int iMax, int jMin, int jMax, int kMin,
int kMax);<br><br>
// Description:<br>
// Specify (imin,imax, jmin,jmax, kmin,kmax) indices in array
form.<br>
void SetExtent(int extent[6]);<br><br>
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):<br>
plane->SetExtent(0,46, 16,16, 0,43);<br>
To instead extract a volume, make sure that the min and max values are
not the same. For example:<br>
plane->SetExtent(0,46, 3,16, 0,43);<br><br>
- Amy<br><br>
At 01:41 PM 3/23/2004, Vetria Byrd wrote:<br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Can
anyone point me in the direction of an example that demonstrates how to
extract a “volume” from a rectilinear grid using
vtkRectilinearGridGeometryFilter?<br>
I have viewed and I am able to run the RGrid.cxx example which shows how
to extract a plane.<br>
The vtkRectilinearGridGeometryFilter Class reference states by specifying
appropriate i-j-k indices, it is possible to extract a volume.<br>
And example would be helpful.<br>
<br>
Thanks in advance for your help.<br>
<br>
_______________<br>
Vetria L. Byrd<br>
</font><font face="Times New Roman, Times"> <br>
</font></blockquote></body>
</html>