code: def updateMesh(self, polydata):
          
          self.poly = polydata
          self.mapper.SetInputData(polydata)
          self.mapper.Modified()
          return self
docs: Overwrite the polygonal mesh of the actor with a new one.