[vtkusers] Updating cell and point data of vtkDataSet

Андрей Траченко goodrone at gmail.com
Thu Jun 3 09:13:09 EDT 2010


Hello,

I'm working on an application which solves dynamic FEM problems and
has an interactive GUI which should display current data in real-time.
It also has a VTK pipeline containing filters, mappers and actors.
Source classes are vtkPolyData and vtkUnstructuredGrid.

What is the best way to update data fields (assuming geometry is not
changing)? I can think of these ways:
1) Overwrite data (tuples in vtkDataArray) on each step, and mark the
source as modified.
2) Create new vtkDataArrays on each step, remove old arrays in cell
and point data, add newly created arrays.

Which way is better? Or maybe there is a better one?

--
Andrew



More information about the vtkusers mailing list