add convex polygon clockwise detect function