Flattening Surfaces

Hello friends
I tried to flatten a surface according to an article I read
Now I have trouble getting the corner points.
Is there a way to get it?
surface.gh (34.9 KB)
Gridgenerationonfree-formsurfaceusingguidelineadvancingandsurfaceflatteningmethod2.pdf (2.0 MB) Page 10