[vtkusers] Changing cell data
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Aug 5 11:08:09 EDT 2005
> I initialise the doc/view by creating a VTK file and reading it in as
> the window is opened. I use a vtkUnstructuredGridReader and then a
> vtkGeometryFilter (pGeometry) to extract the information. In the file I
> create a dummy pressure at each point list that I can manipulate and a
> real list of the materials for each cell (which I can then colour using
> the pMatLut). However, I also want to be able to associate a double
> precision scalar with each cell (and subsequently manipulate it). Has
> anybody any ideas how this can be done?
Hi James,
You can have as many celldata arrays as you want, if I understand your
question correctly all you need is to add another array. Otherwise you
can have a look at FieldData arrays which should allow you more flexibility.
My 2 cents
Mathieu
More information about the vtkusers
mailing list