<html>
Hi Andrew-<br>
<br>
Every vtkDataSet (and subclasses) respond to the GetBounds() method.
So:<br>
<br>
vtkDataSetReader reader<br>
reader SetFileName yadaya<br>
set bounds [[reader GetOutput] GetBounds]<br>
set numPoints [[reader GetOutput] GetNumberOfPoints]<br>
<br>
At this point you could connect the rest of the filters to the reader.
The GetOutput<br>
method in this filter has the side effect of causing the reader to
execute (because the<br>
output type is not known without reading the file).&nbsp; Note there are
more specialized <br>
GetOutput() methods (e.g., GetPolyDataOutput()) which allow you to hook
up filters<br>
that take specialized input.<br>
<br>
Will<br>
<br>
At 04:05 PM 2/1/2001 +1100, Andrew Maclean wrote:<br>
<br>
<blockquote type=cite class=cite cite><pre><font face="arial" size=2>I am
reading in data using the vtkDataSetReader class. How do I determine the
number of points and the bounds of the
data?</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>To get the bounds I am creating a
temporary vtkDataSetMapper object and using the GetBounds function and
then deleting the object (I am not sure that this is the best way!). But
I don t know how to determine the number of points. I need this
information before the pipeline processing
begins.</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>&nbsp;</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>Is there something that I can feed the
output of vtkDataSetReader into to get this
information?</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>&nbsp;</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>&nbsp;</font></pre><font face="Courier New, Courier"></font><br>
<pre><font face="arial" size=2>If you have an answer, many thanks in
advance!!</font></pre><font face="Courier New, Courier"></font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>&nbsp;<br>
</font><br>
<font face="arial" size=2>Andrew<br>
</font><br>
<font face="arial" size=2>&nbsp;</font></blockquote></html>