- fixed the CNCJob geometry created with HPGL preprocessor

This commit is contained in:
Marius Stanciu
2019-12-16 20:32:00 +02:00
committed by Marius
parent 435648171e
commit 0574f7a039
3 changed files with 5 additions and 3 deletions

View File

@@ -3945,8 +3945,8 @@ class CNCjob(Geometry):
match_pa = re.search(r"^PA(\s*-?\d+\.\d+?),(\s*\s*-?\d+\.\d+?)*;$", gline)
if match_pa:
command['G'] = 0
command['X'] = float(match_pa.group(1).replace(" ", ""))
command['Y'] = float(match_pa.group(2).replace(" ", ""))
command['X'] = float(match_pa.group(1).replace(" ", "")) / 40
command['Y'] = float(match_pa.group(2).replace(" ", "")) / 40
match_pen = re.search(r"^(P[U|D])", gline)
if match_pen:
if match_pen.group(1) == 'PU':