<div class="gmail_quote">On Fri, Aug 6, 2010 at 9:52 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Thu, Aug 5, 2010 at 9:10 PM, Andy Bauer <<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>> wrote:<br>
> Use the calculator filter to create a vector array from the coordinates,<br>
> then point to cell data, then integrate attributes to get the result divided<br>
> by the volume/area to give the desired input to the transform filter.<br>
><br>
> Andy<br>
<br>
In the Calculator Filter I set<br>
Attribute Mode = Point Data<br>
Unchecked "Coordinate Results"<br>
Result Array Name = coords<br>
Selected "coords" from the "Vectors" drop down list<br>
<br>
I now see that 'coords' is an array in the output.<br>
<br>
When I run the "Integrate Variables" filter on the Calculator Filter<br>
output, the result is just (0,0,0).<br></blockquote><div><br>This seems weird. What kind of data set do you have? Is your data set already centered then? I'd think there'd be some roundoff error so that it wouldn't be exactly 0 but a "very small number". Do you have any cells/what's the area result under the cell data?<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I know you said to run the "Integrate Attributes" filter, but that is<br>
not in my Filters list. I looked in my ParaView source folder and I do<br>
indeed have vtkIntegraetAttributes.cxx. Any reason why this wouldn't<br>
show up in the filters list?<br></blockquote><div><br>Oops, I meant integrate variables, not integrate attributes. According to the filters.xml file it looks like the Integrate Variables filter is using vtkIntegrateAttributes. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br>