Skip to content
/ TTSGCG Public

TOGoS's TypeScript G-Code Generator - because doing it yourself is easier than learning FreeCAD

Notifications You must be signed in to change notification settings

TOGoS/TTSGCG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOGoS’s TypeScript G-Code Generator

http://picture-files.nuke24.net/uri-res/raw/urn:bitprint:DE7LKZ6VJC35NFDGYEFFIRPYBZ4CXGIN.JKSIBCGCR7XB5U4LNRDEZX4K2O6TOV2SLDRNICQ/TTSGCG-v4.png

Generate simple G-code for milling stuff, in TypeScript.

I created this project because I wanted a simple command-line program for generating bits of G-code to cut lines and holes. Existing programs for generating G-Code were hard for me to understand, too specific to an OS other than the one I’m using, or too crash-prone.

Clockwise/counter-clockwise convention

By convention, holes are traced counter-clockwise, resulting in ‘climb routing’ with a clockwise (as seen from behind)-spinning bit. By this convention, the ‘space side’ is always on the left. But because some path-generating functions (e.g. boxPath) always return a counter-clockwise path, space side should be ‘right’ when tracing counter-clockwise along the outside of an object.

As of [2021-07-01], space side is ignored for path-based cuts because adjusting abitrary paths will require a bit of math that I’m not ready to think about. It is defined purely in anticipation that the information will be useful in the future.

About

TOGoS's TypeScript G-Code Generator - because doing it yourself is easier than learning FreeCAD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published