code: def transformFilter(actor, transformation):
      
      tf = vtk.vtkTransformPolyDataFilter()
      tf.SetTransform(transformation)
      prop = None
      if isinstance(actor, vtk.vtkPolyData):
          tf.SetInputData(actor)
      else:
          tf.SetInputData(actor.polydata())
          prop = vtk.vtkProperty()
          prop.DeepCopy(actor.GetProperty())
      tf.Update()
  
      tfa = Actor(tf.GetOutput())
      if prop:
          tfa.SetProperty(prop)
      return tfa
docs: Transform a ``vtkActor`` and return a new object.