updates
This commit is contained in:
parent
a86afb5711
commit
de178ad998
|
@ -25,8 +25,8 @@ PEN_DOWN_SPEED = 150
|
|||
PEN_DOWN_DELAY = 0
|
||||
|
||||
ACCELERATION = 8
|
||||
MAX_VELOCITY = 8
|
||||
CORNER_FACTOR = 0.0005
|
||||
MAX_VELOCITY = 2
|
||||
CORNER_FACTOR = 0.001
|
||||
|
||||
VID_PID = '04D8:FD92'
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ def simplify_path(points, tolerance):
|
|||
if len(points) < 2:
|
||||
return points
|
||||
line = LineString(points)
|
||||
line = line.simplify(tolerance)
|
||||
line = line.simplify(tolerance, preserve_topology=False)
|
||||
return list(line.coords)
|
||||
|
||||
def simplify_paths(paths, tolerance):
|
||||
|
|
Loading…
Reference in New Issue