Seol mar théacs é seo: Geometric adaptive functionals for structured grid generation