Creating a mesh. Refining it. Writing it to a file.
