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