Nothing.<div>;)</div><div>I need to calculate average value of the attributes in my dataset so I need volume as well as integration of the attributes.<div>vtkMassProperties has worked correctly for volumes for me so far.</div>

<div><br><br><div class="gmail_quote">On Thu, Nov 12, 2009 at 2:31 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

What is the problem with vtkMassProperties?<br>
<br>
On Thu, Nov 12, 2009 at 3:20 PM, Gerrick Bivins<br>
<div><div></div><div class="h5">&lt;<a href="mailto:gbivins@objectreservoir.com">gbivins@objectreservoir.com</a>&gt; wrote:<br>
&gt; Hi Berk,<br>
&gt; Sorry about that. I thought I could simply replace vtkMassProperties with<br>
&gt; vtkIntegrateAttributes and it would work.<br>
&gt; I was previously attaching the vtkIntegrateAttributes after my geometry<br>
&gt; filter (this was the  for vtkMassProperties), but now I&#39;ve changed my<br>
&gt; pipeline to attach the vtkIntegrateAttributes filter to the output of the<br>
&gt; source.<br>
&gt; This however it is resulting in an error .<br>
&gt; No integrated pointdata arrays are calculated and the only celldata array is<br>
&gt; null, even<br>
&gt; though vtkIntegrateAttributes.GetOutputPort().GetCellData().GetNumberOfArrays()<br>
&gt; returns 1.<br>
&gt; This is what my pipeline looks like:<br>
&gt; vtkMultiBlockDataSetAlgorithm<br>
&gt; vtkArrayCalculator<br>
&gt; vtkClipDataset<br>
&gt; vtkIntegrateAttributes<br>
&gt; Any suggestions?<br>
&gt; Gerrick<br>
&gt;<br>
&gt; On Thu, Nov 12, 2009 at 1:45 PM, Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I am not sure I follow. IntegrateAttributes should not produce a<br>
&gt;&gt; volume if you apply it on a surface (i.e. polydata). It should produce<br>
&gt;&gt; an area. It can only calculate the volume of 3D cells.<br>
&gt;&gt;<br>
&gt;&gt; -berk<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Nov 12, 2009 at 12:37 PM, Gerrick Bivins<br>
&gt;&gt; &lt;<a href="mailto:gbivins@objectreservoir.com">gbivins@objectreservoir.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi All,<br>
&gt;&gt; &gt; I&#39;m looking @ using the class vtkIntegrateAttributes (currently in<br>
&gt;&gt; &gt; Paraview)<br>
&gt;&gt; &gt; instead of vtkMassProperties to calculate the volume of datasets.<br>
&gt;&gt; &gt; I&#39;m wondering why vtkIntegrateAttributes doesn&#39;t calculate the volume of<br>
&gt;&gt; &gt; a<br>
&gt;&gt; &gt; closed surface outside of paraview but when used in paraview, it reports<br>
&gt;&gt; &gt; the<br>
&gt;&gt; &gt; volume.<br>
&gt;&gt; &gt; Also, why isn&#39;t the filter able to calculate the volume of a closed<br>
&gt;&gt; &gt; surface?<br>
&gt;&gt; &gt; Thanks for any input here,<br>
&gt;&gt; &gt; Gerrick<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
&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; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>