Merge touching quads to reduce triangle count