code: def fillHoles(self, size=None):
          
          fh = vtk.vtkFillHolesFilter()
          if not size:
              mb = self.maxBoundSize()
              size = mb / 10
          fh.SetHoleSize(size)
          fh.SetInputData(self.poly)
          fh.Update()
          return self.updateMesh(fh.GetOutput())
docs: Identifies and fills holes in input mesh.
          Holes are identified by locating boundary edges, linking them together into loops,
          and then triangulating the resulting loops.
  
          :param float size: approximate limit to the size of the hole that can be filled.
          
          Example: |fillholes.py|_