Compute volume of polygonal mesh (volume enclosed by the surface)

Hello,
as i struggled with this issue a yesterday and the only ‘solution’ i found was this post which was limited for anyone having same issue, I solved this way: Volume calculation (surface mesh) in paraview - #8 by otaolafr