Reading multiple parts from BYU file

Igor Fridman pnin22 at yahoo.com
Fri Feb 18 08:44:40 EST 2000


Hello, I am trying to find an efficient way of
extracting PolyDatas from a BYU file which has
multiple parts in it.  In doing so, I discovered the
following problem:

First I tried creating 1 reader object which reads the
whole file.  I set the part number to 1 and extract
the PolyData (via GetOutput).  Then I set the part
number to 2 and extract the PolyData.  It turns out,
however, this gives me thesame dataset as for part 1,
and I must Update the reader after setting a new part
number.  This, however, causes the reader to read the
file again.  This is quite cumbersome when the file
exceeds 10 parts and 5MB, as I it must read the whole
file 10 times!

I tried creating as many readers as there are parts,
but still each reader reads and stores the whole file,
not just the part that I need.

Any suggestions?

Thanks in advance!


=====
==================================================
Igor Fridman

Naval Research Laboratory
Vacuum Electronics Branch Code 6841
4555 Overlook Ave. S.W., Washington, DC 20375, USA
==================================================
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



More information about the vtkusers mailing list