Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
b15b5fb9
Commit
b15b5fb9
authored
Jul 30, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to divide by 2, we're going to normalize anyway
parent
a39bba08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
actors.py
printrun/gl/libtatlin/actors.py
+1
-1
No files found.
printrun/gl/libtatlin/actors.py
View file @
b15b5fb9
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment