code: def diagonalSize(self):
          
          b = self.polydata().GetBounds()
          return np.sqrt((b[1] - b[0]) ** 2 + (b[3] - b[2]) ** 2 + (b[5] - b[4]) ** 2)
docs: Get the length of the diagonal of actor bounding box.