polygon orientation check