In the next release, this will be very easy to do with the Python Calculator. It will look like:<br><br>inputs[0].PointData[&#39;some_array&#39;] - inputs[1].PointData[&#39;some_array&#39;]<br><br>-berk<br><br><div class="gmail_quote">
On Fri, Feb 19, 2010 at 1:32 PM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The calculator will not accept multiple inputs, so if you want to use<br>
it you will have to append the data first, which makes it hard to<br>
compare side by side.<br>
<br>
You should consider using the python programmable filter instead. It<br>
will accept multiple inputs (there was a post earlier this week on the<br>
mailing list descriing how to access each one) and there are examples<br>
on the wiki of scripts which iterate through the geometry of its<br>
input.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x109<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Fri, Feb 19, 2010 at 1:29 PM, Matthew Cragun &lt;<a href="mailto:mcragun@totalsim.us">mcragun@totalsim.us</a>&gt; wrote:<br>
&gt; I have two separate meshes that are similar, but have slight differences.<br>
&gt; They have the same number of points.  I would like to use the calculator to<br>
&gt; create an array of the distances between corresponding point ID&#39;s in the two<br>
&gt; meshes.  How can I access the coordinate values from each mesh using<br>
&gt; calculator?<br>
&gt;<br>
&gt; For Example, in my calculator I would like:<br>
&gt;<br>
&gt;  Result Array Name= Distance<br>
&gt; Function:  Mag(mesh1.coords-mesh2.coords)<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matt Cragun<br>
&gt;<br>
&gt; Engineer<br>
&gt; TotalSim LLC<br>
&gt; 7003 Post Road,<br>
&gt; Suite 415<br>
&gt; Dublin, Ohio 43016<br>
&gt; O: (614) 255-7426<br>
&gt; M: (801) 404-6021<br>
&gt; E: <a href="mailto:mcragun@totalsim.us">mcragun@totalsim.us</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>