Defining Cell Size instead of Resolution

I am generating a mesh using the mshr.generate_mesh(polygon, resolution) function in python, but am having problems getting the desired cell size. I would like to specify the maximum cell size but I can’t seem to find any support for it. Does anyone know if such a method exists?

I am not sure about mshr, but in Gmsh it is trivial to do such a thing as you can explicitly set the minimum and maximum element size.

Thanks. I will try to use Gmsh instead then.