[Paraview] Retrieving tuples from dataset

Natalie Happenhofer nataliehapp at hotmail.com
Mon Apr 20 03:50:44 EDT 2009


Hi!
Thanks, retrieving works now, but the next problem is inserting:
I tried the following:

result -> InsertTuple3(i,tuple[0],tuple[1],tuple[2]);

or 

result -> InsertNextTuple(tuple);

but none of those methods work correctly. I checked the values of tuple, they are correct, but in the output - dataset, the values are wrong.. 

thx, 
Natalie


> Date: Sat, 18 Apr 2009 16:51:49 -0400
> Subject: Re: [Paraview] Retrieving tuples from dataset
> From: berk.geveci at kitware.com
> To: nataliehapp at hotmail.com
> CC: paraview at paraview.org
> 
> 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
> >
> >

_________________________________________________________________
Permanece actualizado con MSN Noticias. Clic aquí
http://noticias.latam.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090420/d24fac5d/attachment.htm>


More information about the ParaView mailing list