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
8a7d06f6
Commit
8a7d06f6
authored
Jul 20, 2012
by
Lars Kruse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved libarea/simple algorithm selection
parent
7cc5e218
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
MotionGrid.py
pycam/Toolpath/MotionGrid.py
+17
-0
No files found.
pycam/Toolpath/MotionGrid.py
View file @
8a7d06f6
...
@@ -448,7 +448,24 @@ def get_lines_grid(models, (low, high), layer_distance, line_distance=None,
...
@@ -448,7 +448,24 @@ def get_lines_grid(models, (low, high), layer_distance, line_distance=None,
yield
get_lines_layer
(
lines
,
layers
[
-
1
],
last_z
=
last_z
,
yield
get_lines_layer
(
lines
,
layers
[
-
1
],
last_z
=
last_z
,
step_width
=
step_width
,
milling_style
=
milling_style
)
step_width
=
step_width
,
milling_style
=
milling_style
)
def
get_pocketing_polygons
(
polygons
,
offset
,
pocketing_type
,
callback
=
None
):
def
get_pocketing_polygons
(
polygons
,
offset
,
pocketing_type
,
callback
=
None
):
try
:
import
pycam.Toolpath.LibArea
use_libarea
=
True
except
ImportError
:
use_libarea
=
False
if
use_libarea
:
_log
.
debug
(
"Using libarea pocketing algorithm"
)
poly
=
pycam
.
Toolpath
.
LibArea
.
_pocket_model
(
polygons
)
else
:
_log
.
info
(
"Failed to load libarea library."
)
poly
=
get_pocketing_polygons_simple
(
polygons
,
offset
,
pocketing_type
,
callback
)
return
poly
def
get_pocketing_polygons_simple
(
polygons
,
offset
,
pocketing_type
,
callback
=
None
):
pocketing_limit
=
1000
pocketing_limit
=
1000
base_polygons
=
[]
base_polygons
=
[]
other_polygons
=
[]
other_polygons
=
[]
...
...
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