Moved mesh creation to separate file.