Mesh resolution can now be set when generating 2D meshes.