code: def volume(self):
          
          mprop = vtk.vtkMassProperties()
          mprop.SetInputData(self.tri_filter())
          return mprop.GetVolume()
docs: Mesh volume - will throw a VTK error/warning if not a closed surface
  
          Returns
          -------
          volume : float
              Total volume of the mesh.