Yes the code you posted is the kernel of the optimizer. At the top of the source file is:
Code:
/*
* PCB-Gcode Optimiser
* Original code: Daniel
* Updated Code: Jay C
*
* Release: Beta ... use at your own risk
I will gladly put anything more you wish. Just let me know and it will be included in all future releases. I neglected to give either of us credit in the Windows source I have fixed this. Oh, and I gave you full credits on PCB-Gcode, unfortunately that is now lost Not sure the Google Group is much of an improvement.
Jay