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
b8b5ab03
Commit
b8b5ab03
authored
May 23, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Z measurement estimation
parent
8d2612e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gcoder.py
printrun/gcoder.py
+7
-7
No files found.
printrun/gcoder.py
View file @
b8b5ab03
...
...
@@ -93,6 +93,10 @@ class Layer(object):
y
=
current_y
+
(
y
or
0
)
z
=
current_z
+
(
z
or
0
)
current_x
=
x
or
current_x
current_y
=
y
or
current_y
current_z
=
z
or
current_z
if
line
.
e
:
if
x
:
xmin
=
min
(
xmin
,
x
)
...
...
@@ -100,13 +104,9 @@ class Layer(object):
if
y
:
ymin
=
min
(
ymin
,
y
)
ymax
=
max
(
ymax
,
y
)
if
z
:
zmin
=
min
(
zmin
,
z
)
zmax
=
max
(
zmax
,
z
)
current_x
=
x
or
current_x
current_y
=
y
or
current_y
current_z
=
z
or
current_z
if
current_z
:
zmin
=
min
(
zmin
,
current_z
)
zmax
=
max
(
zmax
,
current_z
)
else
:
current_x
=
line
.
x
or
current_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