This commit is contained in:
Michael Fogleman 2017-03-23 22:36:13 -04:00
parent a86afb5711
commit de178ad998
2 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ PEN_DOWN_SPEED = 150
PEN_DOWN_DELAY = 0 PEN_DOWN_DELAY = 0
ACCELERATION = 8 ACCELERATION = 8
MAX_VELOCITY = 8 MAX_VELOCITY = 2
CORNER_FACTOR = 0.0005 CORNER_FACTOR = 0.001
VID_PID = '04D8:FD92' VID_PID = '04D8:FD92'

View File

@ -18,7 +18,7 @@ def simplify_path(points, tolerance):
if len(points) < 2: if len(points) < 2:
return points return points
line = LineString(points) line = LineString(points)
line = line.simplify(tolerance) line = line.simplify(tolerance, preserve_topology=False)
return list(line.coords) return list(line.coords)
def simplify_paths(paths, tolerance): def simplify_paths(paths, tolerance):