OK, I see the issue. Z-interpolation for the rectangular grid would be useful, however. Perhaps, you could use the X-Y positions of UL/LR to choose either UR/LL, drive the stage to one of those position, focus Z and then use the polygon feature to fit a plane and interpolate Z.
Thanks!