Skip to content

Commit 3fa68b5

Browse files
author
Toto Lin
authored
Update polygon.py
1 parent 722ec3e commit 3fa68b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyaron/polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def simple_polygon(points):
144144
if not list_like(points):
145145
raise Exception("source point is not a list")
146146
random.shuffle(points)
147-
if len(points) < 3:
147+
if len(points) <= 3:
148148
return points
149149
# divide by points[0], points[1]
150150
divide_line = [points[1][1] - points[0][1],

0 commit comments

Comments
 (0)