You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because rect and poly are treated alike the first "if" causes the logic to skip that part - because you test it for at least three points (>=6) while the rect shape has only 2 points (left upper corner and right bottom corner).