Takes SVG and converts the elements in gcode instructions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
README.md
Svg2Gcode.pro
abstracttransform.cpp
abstracttransform.h
arc.cpp
arc.h
basicpolygon.cpp
basicpolygon.h
circle.cpp
circle.h
gcodeviewer.cpp
gcodeviewer.h
gcodeviewer.ui
line.cpp
line.h
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
polygon.cpp
polygon.h
qbezier.cpp
qbezier.h
res.qrc
svgitem.cpp
svgitem.h
transform.cpp
transform.h

README.md

SvgToGcode

Takes SVG and converts the elements in gcode instructions.

Last year in course of a month I wrote a simple application which takes SVG xml file and converts it to gcode. However, due to lack of time I wasn't able to finish it.

As of now the application has the following features:

  • Nearly all primitves of SVG can be drawn
  • Transformations like scale, rotate, translate, matrix have been implemented
  • GUI for rearrenging the object on the platform
  • Recursive best effort longest path searching algorithm

There are still many features I would like to implement and I belive are quite mandatory for succesful project:

  • Filling
  • Support line width, could be viewed as filling algorithm
  • Automatic line invisibility test (detect where lines shouldn't be visible
  • Scaling of the image
  • Improved longest path algorithm, for example use djekstra algorithm to find the longest path
  • Construct a new algorithm to detect the shortest path between multiple elements
  • Support of multiple pictures in one workspace

Maybe the code for svg parsing will be useful for someone.

Original article: http://morf.lv/modules.php?name=projects&lasit=16