Grasshopper automatic orient

Hi guys
I need to automatic orient solution for my surfaces with Grasshopper. Each surface must oriented top of the corner. (rhin

o orient) But surfaces is not have four corner. Please help me? 1.3dm (490.5 KB)

You can use Kangaroo and the Coincident goal plus some other goals to do that, maybe not 100 % accurate but probably within tolerance.

I’ve used two lines below and above the surfaces to align the surfaces and points. The two leftmost surfaces have three points at the bottom edge and you only really need two for the alignment. (260.8 KB)

Thank You so much Martin