Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bigprint
twins-controller
Commits
e4ddce3f
Commit
e4ddce3f
authored
Mar 12, 2020
by
Jayant Khatkar
Browse files
clean unnecessary waypoints from contours function
parent
123b72b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
utils/__init__.py
0 → 100644
View file @
e4ddce3f
from
general_utils
import
clean_contour
utils/general_utils.py
0 → 100644
View file @
e4ddce3f
import
gcode2contour
as
gc
def
clean_contour
(
c
):
"""
Remove waypoints in a contour where the time stamp is the same
"""
i
=
0
while
i
<
len
(
c
.
time
):
if
i
>
0
and
c
.
time
[
i
]
==
c
.
time
[
i
-
1
]:
del
c
.
time
[
i
]
del
c
.
Ext
[
i
]
del
c
.
pos
[
i
]
else
:
i
+=
1
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