Re: [Emc-users] convert g1s to g2/3s

2013-06-19 Thread Frank Tkalcevic
> Frank, did you come up with the algorithm yourself? or is there a reference (web-link, paper) I could read somewhere? I just hacked the code. The original comments say it was based on the "Douglas-Peucker simplification", but because of the way it subdivided the gcode commands, it would end up

Re: [Emc-users] convert g1s to g2/3s

2013-06-19 Thread Anders Wallin
On Sun, Jun 16, 2013 at 3:16 PM, Frank Tkalcevic < fr...@franksworkshop.com.au> wrote: > I've added my script to the Wiki, > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs > It will take a gcode file (only tested with Slic3r output) and convert the > many short line segments back to arcs. I

Re: [Emc-users] convert g1s to g2/3s

2013-06-16 Thread Michael Haberler
great job, Frank! this might be worth considering a canon optimisation stage in the interpreter (that'd be near the comment-free wastelands of the NCD code ;) -m Am 16.06.2013 um 14:16 schrieb Frank Tkalcevic : > I've added my script to the Wiki, > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Li

Re: [Emc-users] convert g1s to g2/3s

2013-06-16 Thread Sven Wesley
Wow Frank! I think I will use your code in a Rhino script later on. :) Regards, Sven 2013/6/16 Frank Tkalcevic : > I've added my script to the Wiki, > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs > > > > It will take a gcode file (only tested with Slic3r output) and convert the > many s

Re: [Emc-users] convert g1s to g2/3s

2013-06-16 Thread Gene Heskett
On Sunday 16 June 2013 10:46:03 Frank Tkalcevic did opine: > I've added my script to the Wiki, > http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs > Thank you Frank. Since I don't have a 3d printer, and likely won't have in my remaining time, its of limited use to me, although I would expect

Re: [Emc-users] convert g1s to g2/3s

2013-06-16 Thread Frank Tkalcevic
I've added my script to the Wiki, http://wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs It will take a gcode file (only tested with Slic3r output) and convert the many short line segments back to arcs. It can make a huge difference to print speed and file size if there are lots of arcs. It'

Re: [Emc-users] convert g1s to g2/3s

2013-03-29 Thread Ralph Stirling
Since LinuxCNC does NURBS and b-splines, why not fit splines while you're at it. -- Ralph From: Anders Wallin [anders.e.e.wal...@gmail.com] Sent: Friday, March 29, 2013 11:02 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] convert g

Re: [Emc-users] convert g1s to g2/3s

2013-03-29 Thread Anders Wallin
> Let's be clear though that both G64 and the Douglas-Peucker algorithm > are just smoothing filters. They neither know nor care that your > original curves are composed of circular-arc segments. If it's important > to you to preserve their circular-arc character then you need to use a > toolpath g

Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread BRIAN GLACKIN
But, as you say, my fundamental issue is losing the curve information when I > convert my CAD models to STL. This will go into the "too hard basket" for > now - the waterline processing sounds interesting, but I'm put off by > having > to process a CAD file. > > Thanks, > Frank > > Frank A few r

Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread jeremy youngs
should the look ahead not resolve this ??? -- jeremy youngs -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the

Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread Frank Tkalcevic
chine Controller (EMC) Subject: Re: [Emc-users] convert g1s to g2/3s On 3/28/2013 7:56 AM, BRIAN GLACKIN wrote: > 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, 2

Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread Kent A. Reed
On 3/28/2013 7:56 AM, BRIAN GLACKIN wrote: > 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 kno

Re: [Emc-users] convert g1s to g2/3s

2013-03-28 Thread BRIAN GLACKIN
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 > cur

[Emc-users] convert g1s to g2/3s

2013-03-27 Thread Frank Tkalcevic
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 simpli