Convert vector images (SVG) to gcode for usage with a laser plotter.
Go to file
Hendrik Schutter 14a099c3e4 added scrolling and zoom in simulator 2022-06-16 12:59:31 +02:00
test_data basic gcode simulator 2022-06-16 12:16:46 +02:00
basic gcode simulator 2022-06-16 12:16:46 +02:00
.gitignore Initial commit 2022-06-13 08:17:43 +02:00
LICENSE Initial commit 2022-06-13 08:17:43 +02:00
README.md support svg's with negative coordinates 2022-06-14 22:00:17 +02:00
__init__.py inital default 2022-06-13 12:45:47 +02:00
bezmisc.py cleanup 2022-06-14 16:05:09 +02:00
config.py config class and support for feedrate and moverate 2022-06-14 15:28:00 +02:00
cspsubdiv.py cleanup 2022-06-14 16:05:09 +02:00
cubicsuperpath.py cleanup 2022-06-14 16:05:09 +02:00
ffgeom.py cleanup 2022-06-14 16:05:09 +02:00
gcode_simulator.py added scrolling and zoom in simulator 2022-06-16 12:59:31 +02:00
shapes.py cleanup 2022-06-14 16:05:09 +02:00
simplepath.py cleanup 2022-06-14 16:05:09 +02:00
simpletransform.py cleanup 2022-06-14 16:05:09 +02:00
svg2gcode.code-workspace inital default 2022-06-13 12:45:47 +02:00
svg2gcode.py support svg's with negative coordinates 2022-06-14 22:00:17 +02:00

README.md

svg2gcode

Convert vector images (SVG) to gcode for usage with a laser plotter.

Based on the vector to gcode implementation from Vishal Patil

Requirements

pip install inkex

Usage

clear && cat test_data/10mmx10mm.svg | python3 svg2gcode.py > test_data/test.gcode

Fix for Pronterface

nano /usr/lib64/python3.8/site-packages/printrun/gl/libtatlin/actors.py replace content in lines 442 to 447 with:

        prev_move_normal_x = 0
        prev_move_normal_y = 0
        prev_move_angle = 0
        prev_pos = (0, 0, 0)
        prev_gline = None
        layer_idx = 0