Maximum mesh size is limited by the patch size in a STEP file
I wish to generate a highly coarse mesh, but the maximum mesh size is limited by the patch size of the object described in the STEP file; see taperedcyl.step. I tried to use the 'setCompound' function to treat all surface patches as a single entity similar to the 't12.py' tutorial file. But, the following code throws the error "Invalid exterior boundary mesh for parametrization".
import gmsh
gmsh.initialize()
vol_tag = gmsh.model.occ.importShapes('taperedcyl.step',highestDimOnly=False)
gmsh.model.occ.synchronize()
gmsh.option.setNumber('Mesh.MeshSizeMax', 0.04)
main_vol_surf = gmsh.model.getEntities(2)
main_vol_surface_tags = [tag[1] for tag in main_vol_surf]
gmsh.model.mesh.setCompound(2, main_vol_surface_tags)
gmsh.model.mesh.generate(2)
gmsh.fltk.run()
Can you please point out the problem in the code/concept? Is there any other alternative?
Thanks.