[vtkusers] Acessing field values of a unstructuredGrid

Dmitri Danewitz d.danewitz at yahoo.de
Mon Oct 26 10:33:51 EDT 2009


Hello!
 
I've got to read a vtk file, that is in the form of an unstructuredGrid. The vtk-file looks like this:
 
# vtk DataFile Version 2.0
damBreak3D
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 1331 float
...
CELLS 1000 9000
...
CELL_TYPES 1000
...
CELL_DATA 1000
FIELD attributes 2
cellID 1 1000 int
...
alpha1 1 1000 float
...
POINT_DATA  1331
FIELD attributes 1
alpha1 1 1331 float
 
 
with the "..." standing for values. Now I read the file into a
 
vtkUnstructuredGridReader *reader;
 
then I put the output of that Reader into a
 
vtkUnstructuredGrid *grid;
 
then put the output of that into a
 
vtkGeometryFilter *geoFil;
 
then put that output into a
 
vtkPolyData *polyDat;
 
and now I want to access the values of the "alpha1". I can't manage to get to them via methods of the vtkPolyData. Does someone know how to access them?
 
Greets
Dmitri


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091026/bab56a22/attachment.htm>


More information about the vtkusers mailing list