No subject


Thu May 27 11:52:52 EDT 2010


filter, and in pvpython, I don't get the same result ... !

 from paraview import vtk

i = self.GetInput()

b = i.GetBlock(1)

c = vtk.vtkArrayCalculator()

c.SetInput(b)

c.SetFunction('1.4')

c.SetResultArrayName('test')

c.Update()

print c.GetOutput().GetPointData().GetArray('test').GetTuple1(1)

in pvpython ---> 1.4
in paraview ---> 1.0

Could someone reproduce this ?

--0016e64f90b0a1d21e04904d3f3b
Content-Type: text/html; charset=ISO-8859-1

... I don&#39;t understand anything at all now... <br><br>From a same MultiBlockDataSet, doing this in Paraview through a programmable filter, and in pvpython, I don&#39;t get the same result ... ! <br><br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;">from paraview import vtk</p>
<p style="margin: 0px; text-indent: 0px;">i = self.GetInput()</p>
<p style="margin: 0px; text-indent: 0px;">b = i.GetBlock(1)</p>
<p style="margin: 0px; text-indent: 0px;">c = vtk.vtkArrayCalculator()</p>
<p style="margin: 0px; text-indent: 0px;">c.SetInput(b)</p>
<p style="margin: 0px; text-indent: 0px;">c.SetFunction(&#39;1.4&#39;)</p>
<p style="margin: 0px; text-indent: 0px;">c.SetResultArrayName(&#39;test&#39;)</p>
<p style="margin: 0px; text-indent: 0px;">c.Update()</p>
<p style="margin: 0px; text-indent: 0px;">print c.GetOutput().GetPointData().GetArray(&#39;test&#39;).GetTuple1(1)</p><br>in pvpython ---&gt; 1.4<br>in paraview ---&gt; 1.0<br><br>Could someone reproduce this ? <br>

--0016e64f90b0a1d21e04904d3f3b--


More information about the ParaView mailing list