Commit e4ddce3f authored by Jayant Khatkar's avatar Jayant Khatkar
Browse files

clean unnecessary waypoints from contours function

parent 123b72b0
from general_utils import clean_contour
import gcode2contour as gc
def clean_contour(c):
Remove waypoints in a contour where the time stamp is the same
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]
i += 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment