Tonight I made two really cool things.
First up is the JavaScript G-Code Translate, Scale, Rotate tool.
http://www.unfocusedbrain.com/projects/2009/js-g-code/translate.html
I made this because sometimes I may get G-code from another generator or another person that I want to scale. This utility will scale all coordinates by a given value. X,Y,Z can be scaled independently.
It also can translate coordinates. Say you have a file that is 6″x6″ on theĀ XY plane starts at 0,0 and ends at 6,6. But you like to have objects centered at 0,0. No problem just paste the g-code tell it you want to translate X by -3 and Y by -3. Now the object will be centered at 0,0.
The second thing I wrote tonight was a Spoil Board Surfacing g-code Generator. I had written this before in php. So tonight I ported it to JavaScript and added input boxes to make generating spoil board code super easy.
http://www.unfocusedbrain.com/projects/2009/js-g-code/surface.html