[vtkusers] Acessing field values of a unstructuredGrid

Murat Aydin murat.aydin at netcad.com.tr
Mon Oct 26 10:37:47 EDT 2009


Hi,

This may help : http://vtk.markmail.org/message/zfpaznhq2xb7ug6z?q=murat&page=1

murat
  ----- Original Message ----- 
  From: Dmitri Danewitz 
  To: vtkusers at vtk.org 
  Sent: Monday, October 26, 2009 4:33 PM
  Subject: [vtkusers] Acessing field values of a unstructuredGrid


        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 




------------------------------------------------------------------------------


  _______________________________________________
  Powered by www.kitware.com

  Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

  Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

  Follow this link to subscribe/unsubscribe:
  http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091026/1ff38f1c/attachment.htm>


More information about the vtkusers mailing list