Skip to content

Commit b15671a

Browse files
authored
Update polygon.py
1 parent 6f89a2e commit b15671a

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
@@ -150,7 +150,7 @@ def simple_polygon(points):
150150
raise Exception("source point is not a list")
151151
random.shuffle(points)
152152
if len(points) <= 3:
153-
return points
153+
return Polygon(points)
154154
# divide by points[0], points[1]
155155
divide_line = [points[1][1] - points[0][1],
156156
points[0][0] - points[1][0],

0 commit comments

Comments
 (0)