[vtkusers] Get/Set values in scalar data

John Haiducek jhaiduce at gmail.com
Wed Nov 10 23:05:09 EST 2010


Seb,

Thanks for the tip. I noticed the methods GetTuple1, GetTuple2, etc.,
but I was confused about the relationship between tuples and arrays. If
scalar array values are found in Tuple 1, are the others used for
elements of vector/tensor data, or for some other purpose?

John

On Wed, 2010-11-10 at 18:54 -0500, Sebastien Jourdain wrote:
> 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