code: def maxBoundSize(self):
          
          b = self.polydata(True).GetBounds()
          return max(abs(b[1] - b[0]), abs(b[3] - b[2]), abs(b[5] - b[4]))
docs: Get the maximum dimension in x, y or z of the actor bounding box.