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
f8a64572
Commit
f8a64572
authored
Jul 30, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix refactoring errors
parent
4ef27e5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
actors.py
printrun/gl/libtatlin/actors.py
+2
-2
No files found.
printrun/gl/libtatlin/actors.py
View file @
f8a64572
...
...
@@ -335,7 +335,7 @@ class GcodeModel(Model):
first_prev
=
len
(
vertex_list
)
-
4
# Average directions
avg_move_x
=
delta_x
+
prev_move_x
avg_move_y
=
delta_
x
+
prev_move_y
avg_move_y
=
delta_
y
+
prev_move_y
norm
=
avg_move_x
*
avg_move_x
+
avg_move_y
*
avg_move_y
# FIXME: handle norm == 0 or when paths go back (add an extra cap ?)
if
norm
==
0
:
...
...
@@ -343,7 +343,7 @@ class GcodeModel(Model):
avg_move_normal_y
=
move_normal_y
else
:
norm
=
math
.
sqrt
(
norm
)
avg_move_normal_x
=
-
avg_move_
x
/
norm
avg_move_normal_x
=
-
avg_move_
y
/
norm
avg_move_normal_y
=
avg_move_x
/
norm
# Compute vertices
p1x
=
prev_pos
[
0
]
-
path_halfwidth
*
avg_move_normal_x
...
...
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