I'm looking for an algorithm that given a quad mesh with many a regular grid of small quads, would produce a similar looking quad mesh, but with as many of the small quads unified into larger quads, as much as possible.
For example, given a quad mesh that looks like this:
The output would be something like this:
I realise that producing a optimal solution is probably an NP-Hard problem, so the output would obviously need to be less than optimal.
What is this problem called? Are there established algorithms for it?


