plottertools / vpype-gcode

gcode extension for vpype
MIT License
35 stars 7 forks source link

Possibility to mirror one axis #4

Closed theomega closed 3 years ago

theomega commented 3 years ago

Currently there is the option to flip the x and the y axis. What this does is multiplying the axis with -1. That turns the coordinates for this axis negative. I'm not sure what the use-case for this functionality is, typically gcode should have positive coordinates.

Now, what I'm looking for is the functionality to mirror along one axis. Reason is that SVG (and therefore vpype) is 0,0 at the top left. My pen plotter hat 0,0 at the bottom left, so I need to invert the y axis.

theomega commented 3 years ago

I created a PR for this which renames the current flip option (to negate which should express clearer what it does) and adds an invert option.