This avoids the need to use Mesh-specific functions, and makes allocation and freeing easy oneliners.