code: def loadRectilinearGrid(filename):  # not tested
      
      reader = vtk.vtkRectilinearGridReader()
      reader.SetFileName(filename)
      reader.Update()
      gf = vtk.vtkRectilinearGridGeometryFilter()
      gf.SetInputConnection(reader.GetOutputPort())
      gf.Update()
      return Actor(gf.GetOutput())
docs: Load a ``vtkRectilinearGrid`` object from file and return a ``Actor(vtkActor)`` object.