[vtkusers] Get/Set values in scalar data
David Doria
daviddoria at gmail.com
Wed Nov 10 18:53:18 EST 2010
On Wed, Nov 10, 2010 at 4:50 PM, John Haiducek <jhaiduce at gmail.com> wrote:
> I have a data set of type vtkUnstructuredGrid, and I need to read and write
> scalar values from individual points within that data set. Can anyone tell
> me how to do that?
>
> John Haiducek
You need to create a vtk*Array and then add it to the PointData of the
UnstructuredGrid. Here is an example (it uses PolyData instead of
UnstructuredGrid, but it works the same):
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/MiscPointData
David
More information about the vtkusers
mailing list