Four years ago I was working on a genetic algorithm for vectorization and colors reduction. It is an open source project available in GitHub under the name EllipsesImageApproximator. The result of the algorithm is a list of simple shapes (in this case ellipses). Now I need this list to be translated in G Code instructions. I am working with 16 base colors. Each color will be plotted separately by the plotter (color by color plotting). For 16 colors there will be 16 CNC files with G Code instructions.
Please, suggest me what will be the most efficient way for G Code instructions generation?