<div dir="ltr"><div>Now you have a vtk data object, so use vtk level python to work with it:</div><div><br></div>vtkarray = p.GetCellData().GetArray("Volume")<div>for index in range(0, vtkarray.GetNumberOfTuples()):</div><div>  print vtkarray.GetValue(index)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Mon, Mar 28, 2016 at 10:18 AM, Arshpreet Singh <span dir="ltr"><<a href="mailto:arsh840@gmail.com" target="_blank">arsh840@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Mar 22, 2016 at 10:38 PM, Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>> wrote:<br>
<br>
>>> You probably need to fetch the data over to the client side with<br>
>>><br>
>>> Fetch(values_table)<br>
>><br>
>> Thanks Cory, That was helpful.<br>
<br>
</span>Hi Cory, I am still not able to find the value of "Volume" array.<br>
<br>
<br>
<code><br>
<br>
p = Fetch(value_table)<br>
<br>
print p.GetCellData()<br>
<br>
</code><br>
<br>
as the above code returns following output:<br>
<br>
vtkCellData (0xada13c0)<br>
Debug: Off<br>
Modified Time: 1916512<br>
Reference Count: 2<br>
Registered Events:<br>
Registered Observers:<br>
vtkObserver (0xad3bae0)<br>
Event: 33<br>
EventName: ModifiedEvent<br>
Command: 0xad28fe0<br>
Priority: 0<br>
Tag: 1<br>
Number Of Arrays: 1<br>
Array 0 name = Volume<br>
Number Of Components: 1<br>
Number Of Tuples: 1<br>
Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )<br>
Interpolate Flags: ( 1 1 1 1 1 0 0 1 )<br>
Pass Through Flags: ( 1 1 1 1 1 1 1 1 )<br>
Scalars: (none)<br>
Vectors: (none)<br>
Normals: (none)<br>
TCoords: (none)<br>
Tensors: (none)<br>
GlobalIds: (none)<br>
PedigreeIds: (none)<br>
EdgeFlag: (none)<br>
<span class="im HOEnZb"><br>
--<br>
<br>
Thanks<br>
Arshpreet Singh<br>
<br>
I am Sikh boy, Learning by doing and Learning by teaching is my religion.<br>
------------------------------------------------------------------------------<br>
Slashdot TV.<br>
Video for Nerds.  Stuff that matters.<br>
<a href="http://tv.slashdot.org/" rel="noreferrer" target="_blank">http://tv.slashdot.org/</a><br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div>