well done! I was thinking of using the mid point of each edge as the check, instead of flipping them, not sure if that would work
I see you only needed a line, not a closed polyline, a bit of work to order the edges
"a bit of work to order the edges"yes
I am working to do this and i am at a good point
"I was thinking of using the mid point of each edge"It is a good idea