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
675af0aa
Commit
675af0aa
authored
Aug 09, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take all moves into account for dimensions if no extrusion (#417)
parent
ad4acb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcoder.py
printrun/gcoder.py
+6
-3
No files found.
printrun/gcoder.py
View file @
675af0aa
...
@@ -87,7 +87,7 @@ class Layer(list):
...
@@ -87,7 +87,7 @@ class Layer(list):
self
.
z
=
z
self
.
z
=
z
def
_preprocess
(
self
,
current_x
,
current_y
,
current_z
,
def
_preprocess
(
self
,
current_x
,
current_y
,
current_z
,
offset_x
,
offset_y
,
offset_z
):
offset_x
,
offset_y
,
offset_z
,
ignore_noe
=
False
):
xmin
=
float
(
"inf"
)
xmin
=
float
(
"inf"
)
ymin
=
float
(
"inf"
)
ymin
=
float
(
"inf"
)
zmin
=
0
zmin
=
0
...
@@ -116,7 +116,7 @@ class Layer(list):
...
@@ -116,7 +116,7 @@ class Layer(list):
current_y
=
y
or
current_y
current_y
=
y
or
current_y
current_z
=
z
or
current_z
current_z
=
z
or
current_z
if
line
.
e
:
if
line
.
e
or
not
ignore_noe
:
if
x
:
if
x
:
xmin
=
min
(
xmin
,
x
)
xmin
=
min
(
xmin
,
x
)
xmax
=
max
(
xmax
,
x
)
xmax
=
max
(
xmax
,
x
)
...
@@ -374,9 +374,12 @@ class GCode(object):
...
@@ -374,9 +374,12 @@ class GCode(object):
offset_y
=
0
offset_y
=
0
offset_z
=
0
offset_z
=
0
ignore_noe
=
self
.
filament_length
>
0
for
l
in
self
.
all_layers
:
for
l
in
self
.
all_layers
:
meta
=
l
.
_preprocess
(
current_x
,
current_y
,
current_z
,
meta
=
l
.
_preprocess
(
current_x
,
current_y
,
current_z
,
offset_x
,
offset_y
,
offset_z
)
offset_x
,
offset_y
,
offset_z
,
ignore_noe
)
current_x
,
current_y
,
current_z
=
meta
[
0
]
current_x
,
current_y
,
current_z
=
meta
[
0
]
offset_x
,
offset_y
,
offset_z
=
meta
[
1
]
offset_x
,
offset_y
,
offset_z
=
meta
[
1
]
(
xm
,
xM
),
(
ym
,
yM
),
(
zm
,
zM
)
=
meta
[
2
:]
(
xm
,
xM
),
(
ym
,
yM
),
(
zm
,
zM
)
=
meta
[
2
:]
...
...
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