Closed curve orientation

Hi everyone

I have closed curve laying on the surface. This is the question: How to check orientation of the curve (clockwise or counter-clockwise) and if orientation is clockwise how to change to counter - clockwise (with Rhino SDK functions).
Thanks
Filip

Ok, I think that I solved this problem…sorry :smiley:

How did you do it?