mirror of
https://gitlab.constantvzw.org/osp/tools.cobbled-paths.git
synced 2024-12-22 20:50:31 +01:00
19 lines
532 B
Python
19 lines
532 B
Python
# from hpgl_multipen_output import HpglMultipenOutput
|
|
from hpgl_output_adapted import HpglOutputAdapted
|
|
|
|
def svgToHPGL (path, speed=1, penCount=8, force=2):
|
|
e = HpglOutputAdapted()
|
|
e.affect([
|
|
'--orientation', '0',
|
|
'--force', '0',
|
|
'--overcut', '0',
|
|
'--precut', 'false',
|
|
'--flat', '4',
|
|
'--toolOffset', '0',
|
|
'--autoAlign', 'false',
|
|
'--speed', str(speed),
|
|
'--penCount', str(penCount),
|
|
'--force', str(force),
|
|
path], False)
|
|
|
|
return e.hpgl |