<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>Thanks, retrieving works now, but the next problem is inserting:<br>I tried the following:<br><br>result -> InsertTuple3(i,tuple[0],tuple[1],tuple[2]);<br><br>or <br><br>result -> InsertNextTuple(tuple);<br><br>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.. <br><br>thx, <br>Natalie<br><br><br>> Date: Sat, 18 Apr 2009 16:51:49 -0400<br>> Subject: Re: [Paraview] Retrieving tuples from dataset<br>> From: berk.geveci@kitware.com<br>> To: nataliehapp@hotmail.com<br>> CC: paraview@paraview.org<br>> <br>> For sanity check, what do these return?<br>> <br>> scalars->GetValue(i*3+1)<br>> scalars->GetValue(i*3+2)<br>> <br>> scalars->GetTuple(i)[1]<br>> scalars->GetTuple(i)[2]<br>> <br>> -berk<br>> <br>> On Fri, Apr 17, 2009 at 8:58 AM, Natalie Happenhofer<br>> <nataliehapp@hotmail.com> wrote:<br>> > Hi!<br>> > I´m having trouble retrieving the data from a vector-valued vtkDoubleArray,<br>> > my code looks like this:<br>> ><br>> > double tuple[3]; //tuple should be stored in this array<br>> > scalars -> GetTupleValue(i,tuple);<br>> ><br>> > The first component, i.e. tuple[0] is retrieved properly, but tuple[1] and<br>> > tuple[2] are definitely wrong, does anyone see the reason?<br>> > (the array has 3 components, that´s checked).<br>> > Or is there any other method I could use?<br>> ><br>> > thx,<br>> > Natalie<br>> ><br>> > ________________________________<br>> > Hay un nuevo Messenger que tienes que conocer... ¡Mira las novedades!<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> > http://paraview.org/Wiki/ParaView<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> ><br>> ><br><br /><hr />¿Quieres saber cómo va a estar el clima mañana? <a href='http://tiempo.latam.msn.com/ ' target='_new'>¡Ingresa ahora a MSN!</a></body>
</html>