Much rectangles with 3 points

Hi,
i have a problem to get much 3-point rectangles. I hope someone can help me, thanks.

Rectangles with much of three points.gh (57.9 KB)


Rectangles with much of three points_re.gh (67.9 KB)

Thank you so much.