Problem with Connected Surface Properties

I have used a Contour filter to create some bubbles in my dataset. When I try to run Connected Surface Properties to figure out the centroid/volume of these bubbles, it leaves a bunch of the following errors:

ERROR: In vtkMultiObjectMassProperties.cxx, line 300
vtkMultiObjectMassProperties (0x6ca9e160): No data!

Any ideas what I might be doing wrong here?

The code in VTK lists the error condition as:

if (input->GetPolys()->GetNumberOfCells() < 1 || input->GetNumberOfPoints()<1)

I noticed that my input data was a Partitioned Data Collection, rather than a bare PolyData. I ran a Merge Blocks and I’m exploring whether this resolved the issue.

Update: I believe this was the problem. The filter is just not compatible with partitioned data collections.

Perhaps I’m misunderstanding what this filter is supposed to be doing? I would have expected all the connected objects to have the same volume. This is what I get, instead:


ObjectIds seems to be getting it right. Am I supposed to manually sum on the different Objects? I’m also not sure where the negative volumes are coming from.

Related: Estimating volume of separated surfaces, plotting histogram - ParaView Support - ParaView