G64 does this for you without changing the code.
See http://www.linuxcnc.org/docs/html/gcode/gcode.html#sec:G64 for more details. On Wed, Mar 27, 2013 at 6:17 PM, Frank Tkalcevic < fr...@franksworkshop.com.au> wrote: > Does anyone know of a script that converts G1 line segments into G2/G3 > curves? In the src tree I found author.py which has an implementation of > the Douglas-Peucker simplification algorithm, but I can't see where it is > used. Is there a script anywhere that uses it? > > > > I want to use this to simplify the output of the 3d printer software > Slic3r. > It only generates line segments which slows down my router. Most of my > shapes have circle shapes, so it would be nice to use G2/G3. > > > > I've tried a trial version of a program I found on the 'net, but it didn't > work because there are A axis moves on each line (A = extruder). > > > > Frank. > > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users