Commit b15b5fb9 authored by Guillaume Seguin's avatar Guillaume Seguin

No need to divide by 2, we're going to normalize anyway

parent a39bba08
...@@ -332,7 +332,7 @@ class GcodeModel(Model): ...@@ -332,7 +332,7 @@ class GcodeModel(Model):
# Store previous vertices indices # Store previous vertices indices
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 + prev_move
norm = numpy.linalg.norm(avg_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 ?)
if norm == 0: if norm == 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