Text this: Geometric adaptive functionals for structured grid generation