<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">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.<br>
 <br>
<div>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.<br>
<br>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">-----------------<br>
Jean</div>
</span></font></div>
</div>
</div>
</body>
</html>