<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>I got it to work with saving every component of the input array in a separate vtkDoubleArray. <br><br>input1 -> GetPointData() -> GetArray(arr1) -> GetData(0,numOfTuples1,0,0, scalars1comp0);<br>input1 -> GetPointData() -> GetArray(arr1) -> GetData(0,numOfTuples1,1,1, scalars1comp1);<br>input1 -> GetPointData() -> GetArray(arr1) -> GetData(0,numOfTuples1,2,2, scalars1comp2);<br><br>input2 -> GetPointData() -> GetArray(arr2) -> GetData(0,numOfTuples2,0,0, scalars2comp0);<br>input2 -> GetPointData() -> GetArray(arr2) -> GetData(0,numOfTuples2,1,1, scalars2comp1);<br>input2 -> GetPointData() -> GetArray(arr2) -> GetData(0,numOfTuples2,2,2, scalars2comp2);<br><br>Then I´m working with those arrays. <br><br>greetings,<br>Natalie<br>> Date: Mon, 20 Apr 2009 07:27:57 -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>> Natalie,<br>> <br>> Those methods definitely work otherwise our dashboards would be<br>> showing it. You must be doing something wrong. Make sure that tuple[]<br>> is a double array.<br>> <br>> -berk<br>> <br>> On Mon, Apr 20, 2009 at 3:50 AM, Natalie Happenhofer<br>> <nataliehapp@hotmail.com> wrote:<br>> > 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,<br>> > 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<br>> >> > 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]<br>> >> > 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>> > ________________________________<br>> > ¿Quieres saber cómo va a estar el clima mañana? ¡Ingresa ahora a MSN!<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 />Casi 50 razones para tener el nuevo Messenger. <a href='http://www.nuevomessenger2009.com/' target='_new'>¡Conócelas aquí y bájate el nuevo!</a></body>
</html>