Simplify mesh temporary.

Until we move this code to the exporter.