<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>I have a program use "vtkExtractUnstructuredGrid" to extract pieces
from a big UnstructuredGrid dataset, it works fine with the old vtk files
which don't have FieldData. While if the big dataset has FieldData, it
appears that there is no scalar information in the small piece which was
produced by my program , "(the object of small data)->GetPointData()->GetScalars()"
will return 0.
<p>I compared ASCII files of both big and small vtk files, it seems OK,
the only questionable thing is the line with string "scalar" in:
<br>======================================================================================
<br># vtk DataFile Version 3.0
<br>vtk output
<br>ASCII
<br>DATASET UNSTRUCTURED_GRID
<br>FIELD FieldData 1
<br>scalars 1 273774 float
<br>^^^^^^^^^^^^^^^^^^
<br>======================================================================================
<br>are the same, no matter in big or small file there is 273774,&nbsp;
while the numbers follow the other terms reflect the change of size, for
example, in big file is "POINT_DATA 273774", in small file the correspondant
line is "POINT_DATA 21153".
<p>My visualiztion program can handle the big dataset with FieldData or
non-FieldData datasets no matter it is produced by "vtkExtractUnstructuredGrid"
or not.
<p>Any suggestions, comments, solutions??? Thanks!
<br>&nbsp;
<pre>--&nbsp;
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: <A HREF="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</A></pre>
&nbsp;</html>