[vtkusers] Get/Set values in scalar data

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Nov 10 18:54:40 EST 2010


Hi John,

look at the API but here is the idea. Where Temperature is the name of
your data array (you can use index too) and pointId is the index of
the point in the point array.

dataset->GetPointData()->GetArray("Temperature")->GetTuple1( pointId )

Seb

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
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list