I would be interested in having the ability to specify spacing distributions for the Transfinite Line command other than just Progression or Bump. Specifically, I would like see a Tanh distribution with parameters to specify the spacing constraint at either end of the line (or at both).
I've attached a Gmsh file for creating a simple straight sided 2D block using extrusions with macros to enforce the Tanh distribution along the edges through the extrusion layers. However, when I go to mesh the surface, the unstructured meshing algorithm (as opposed to the transfinite method) does not enforce the scaling as desired. I have included an image of the mesh created by Gmsh as well as an image of the structured mesh I am trying to recreate.