Commit 2f3f39c2 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix obvious freakin bug

parent 329edba0
...@@ -333,7 +333,7 @@ class GcodeModel(Model): ...@@ -333,7 +333,7 @@ class GcodeModel(Model):
first_prev = len(vertex_list) - 4 first_prev = len(vertex_list) - 4
# Average directions # Average directions
avg_move = move_normalized / 2 + prev_move / 2 avg_move = move_normalized / 2 + prev_move / 2
norm = numpy.linalg.norm(move) norm = numpy.linalg.norm(avg_move)
# FIXME: handle norm == 0 or when paths go back (add an extra cap ?) # FIXME: handle norm == 0 or when paths go back (add an extra cap ?)
avg_move = avg_move / norm avg_move = avg_move / norm
avg_move_normal = numpy.array([- avg_move[1], avg_move[0]]) avg_move_normal = numpy.array([- avg_move[1], avg_move[0]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment