[Paraview] Retrieving tuples from dataset

Berk Geveci berk.geveci at kitware.com
Sat Apr 18 16:51:49 EDT 2009


For sanity check, what do these return?

scalars->GetValue(i*3+1)
scalars->GetValue(i*3+2)

scalars->GetTuple(i)[1]
scalars->GetTuple(i)[2]

-berk

On Fri, Apr 17, 2009 at 8:58 AM, Natalie Happenhofer
<nataliehapp at hotmail.com> wrote:
> Hi!
> I´m having trouble retrieving the data from a vector-valued vtkDoubleArray,
> my code looks like this:
>
> double tuple[3]; //tuple should be stored in this array
> scalars -> GetTupleValue(i,tuple);
>
> The first component, i.e. tuple[0] is retrieved properly, but tuple[1] and
> tuple[2] are definitely wrong, does anyone see the reason?
> (the array has 3 components, that´s checked).
> Or is there any other method I could use?
>
> thx,
> Natalie
>
> ________________________________
> Hay un nuevo Messenger que tienes que conocer... ¡Mira las novedades!
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list