Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
e6861f78
Commit
e6861f78
authored
Nov 07, 2012
by
Lars Kruse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for engrave: skip the top layer (no penetration, yet)
parent
3ccab5bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ProcessStrategies.py
pycam/Plugins/ProcessStrategies.py
+1
-1
MotionGrid.py
pycam/Toolpath/MotionGrid.py
+4
-1
No files found.
pycam/Plugins/ProcessStrategies.py
View file @
e6861f78
...
@@ -177,7 +177,7 @@ class ProcessStrategyEngraving(pycam.Plugins.PluginBase):
...
@@ -177,7 +177,7 @@ class ProcessStrategyEngraving(pycam.Plugins.PluginBase):
step_width
=
(
tool_radius
/
4.0
),
step_width
=
(
tool_radius
/
4.0
),
milling_style
=
process
[
"parameters"
][
"milling_style"
],
milling_style
=
process
[
"parameters"
][
"milling_style"
],
pocketing_type
=
process
[
"parameters"
][
"pocketing_type"
],
pocketing_type
=
process
[
"parameters"
][
"pocketing_type"
],
callback
=
progress
.
update
)
skip_first_layer
=
True
,
callback
=
progress
.
update
)
progress
.
finish
()
progress
.
finish
()
return
path_generator
,
motion_grid
return
path_generator
,
motion_grid
pycam/Toolpath/MotionGrid.py
View file @
e6861f78
...
@@ -400,7 +400,7 @@ def _get_sorted_polygons(models, callback=None):
...
@@ -400,7 +400,7 @@ def _get_sorted_polygons(models, callback=None):
def
get_lines_grid
(
models
,
(
low
,
high
),
layer_distance
,
line_distance
=
None
,
def
get_lines_grid
(
models
,
(
low
,
high
),
layer_distance
,
line_distance
=
None
,
step_width
=
None
,
milling_style
=
MILLING_STYLE_CONVENTIONAL
,
step_width
=
None
,
milling_style
=
MILLING_STYLE_CONVENTIONAL
,
start_position
=
START_Z
,
pocketing_type
=
POCKETING_TYPE_NONE
,
start_position
=
START_Z
,
pocketing_type
=
POCKETING_TYPE_NONE
,
callback
=
None
):
skip_first_layer
=
False
,
callback
=
None
):
# the lower limit is never below the model
# the lower limit is never below the model
polygons
=
_get_sorted_polygons
(
models
,
callback
=
callback
)
polygons
=
_get_sorted_polygons
(
models
,
callback
=
callback
)
if
polygons
:
if
polygons
:
...
@@ -433,6 +433,9 @@ def get_lines_grid(models, (low, high), layer_distance, line_distance=None,
...
@@ -433,6 +433,9 @@ def get_lines_grid(models, (low, high), layer_distance, line_distance=None,
reverse
=
bool
(
start_position
&
START_Z
))
reverse
=
bool
(
start_position
&
START_Z
))
# turn the generator into a list - otherwise the slicing fails
# turn the generator into a list - otherwise the slicing fails
layers
=
list
(
layers
)
layers
=
list
(
layers
)
# engrave ignores the top layer
if
skip_first_layer
and
(
len
(
layers
)
>
1
):
layers
=
layers
[
1
:]
last_z
=
None
last_z
=
None
if
layers
:
if
layers
:
# the upper layers are used for PushCutter operations
# the upper layers are used for PushCutter operations
...
...
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