[vtk-developers] vtkIntegrateAttributes...closed surface volume?

Gerrick Bivins gbivins at objectreservoir.com
Thu Nov 12 15:20:50 EST 2009


Hi Berk,
Sorry about that. I thought I could simply replace vtkMassProperties with
vtkIntegrateAttributes and it would work.
I was previously attaching the vtkIntegrateAttributes after my geometry
filter (this was the  for vtkMassProperties), but now I've changed my
pipeline to attach the vtkIntegrateAttributes filter to the output of the
source.
This however it is resulting in an error .
No integrated pointdata arrays are calculated and the only celldata array is
null, even
though vtkIntegrateAttributes.GetOutputPort().GetCellData().GetNumberOfArrays()
returns 1.

This is what my pipeline looks like:
vtkMultiBlockDataSetAlgorithm
vtkArrayCalculator
vtkClipDataset
vtkIntegrateAttributes

Any suggestions?
Gerrick


On Thu, Nov 12, 2009 at 1:45 PM, Berk Geveci <berk.geveci at kitware.com>wrote:

> I am not sure I follow. IntegrateAttributes should not produce a
> volume if you apply it on a surface (i.e. polydata). It should produce
> an area. It can only calculate the volume of 3D cells.
>
> -berk
>
> On Thu, Nov 12, 2009 at 12:37 PM, Gerrick Bivins
> <gbivins at objectreservoir.com> wrote:
> > Hi All,
> > I'm looking @ using the class vtkIntegrateAttributes (currently in
> Paraview)
> > instead of vtkMassProperties to calculate the volume of datasets.
> > I'm wondering why vtkIntegrateAttributes doesn't calculate the volume of
> a
> > closed surface outside of paraview but when used in paraview, it reports
> the
> > volume.
> > Also, why isn't the filter able to calculate the volume of a closed
> surface?
> > Thanks for any input here,
> > Gerrick
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091112/8511d823/attachment.html>


More information about the vtk-developers mailing list