Before that, though, you can try changing the pipeline time to see if it helps:
self.mesh.DataHasBeenGenerated()