setting mesh size constraint for all points
I am constructing a large model in python that has about 3000 cubes. I want to set the mesh size constraint for the cubes all to the same value, but the mesh size for the air bounding box to a different value. At the moment I am creating the cubes with occ.addBox() and then set the mesh size with
entities = gmsh.model.occ.getEntitiesInBoundingBox(*gmsh.model.occ.getBoundingBox(3,boxTag), dim=0)
gmsh.model.occ.mesh.setSize(entities,meshResolution)
However this method is a bit slow. Is there a faster way, ie to set the mesh size globally for all points that are created from there on?