tmpvar / svgmill

14 stars 1 forks source link

A few questions #2

Closed 8eecf0d2 closed 10 years ago

8eecf0d2 commented 10 years ago

After digging through the code I found that the --scale=n arg is able to scale up but it doesn't seem to work going down or at least not with decimal values.

Also is there an arg to tell z axis what to do? currently I run svgmill then go regex the G1 Zn to move up and down for use with a pen plotter.

Really handy little tool thanks for all your work on it.

tmpvar commented 10 years ago

After digging through the code I found that the --scale=n arg is able to scale up but it doesn't seem to work going down or at least not with decimal values.

This might be a parsing bug in the version of optimist that it's using?

Also is there an arg to tell z axis what to do? currently I run svgmill then go regex the G1 Zn to move up and down for use with a pen plotter.

not currently, but I'm welcome to patches if this library is helpful for you

I would recommend using https://github.com/em/svg2gcode instead of this. I didn't want to use the clipper.js library for offsetting so I tried to bake my own which is why this might be buggy for you. Plus I'm using some less than optimal code from lasersaur that they had before porting it all into python.

svg2gcode uses canvg and clipper under the hood and should work way better for the time being

thank you for the interest in this project though, @em just beat me to realizing a working solution!