I recommend using the IntegrateVariables filter which will give the correct 
answer for wedges and pyramids. The output is put into an unstructured mesh 
with a single vertex cell, holding the "Volume" in its Cell Data. The 
implemented is in vtkIntegrateAttributes which triangulates the non-trivial 
cells into tetrahedra, performing the sum of all volumes within the cell.

The reason you get a -1 using the python calculator can be linked to the 
implementation of vtkCellQuality returning this->GetUnsupportedGeometry() 
(equal to -1) for wedges and pyramids.

-----------------
Jean
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to