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
e27bd771
Commit
e27bd771
authored
Jul 26, 2012
by
blokkendoos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closed curves fix for libarea pocketing
parent
a28d4efc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
LibArea.py
pycam/Toolpath/LibArea.py
+4
-3
No files found.
pycam/Toolpath/LibArea.py
View file @
e27bd771
...
...
@@ -14,8 +14,12 @@ _log = pycam.Utils.log.get_logger()
def
_polygon2curve
(
polygon
):
curve
=
area
.
Curve
()
first_pt
=
next
(
iter
(
polygon
.
get_points
()),
None
)
for
pt
in
polygon
.
get_points
():
curve
.
append
(
area
.
Vertex
(
area
.
Point
(
pt
[
0
],
pt
[
1
])))
# closed curve has end point same as start point
if
not
first_pt
is
None
:
curve
.
append
(
area
.
Vertex
(
area
.
Point
(
first_pt
[
0
],
first_pt
[
1
])))
return
curve
...
...
@@ -66,9 +70,6 @@ def vertex2lines(before, vt):
return
[
pycam
.
Geometry
.
Line
.
Line
(
before
,
end
)]
def
_pocket_area
(
a
,
offset
):
polygons
=
[]
#a.m_round_corners_factor = params.m_round_corner_factor
a
.
m_round_corners_factor
=
1.0
arealist
=
_get_inner_polygons
(
a
,
offset
)
#if params.m_from_center:
# arealist.reverse()
...
...
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