This is a typical CNC router setup. You can really cut material manually or run the toolpath contained in scene.my.gcode.
The tool path actually loaded make a nice pyramid. The origin of the code is on the top center of the workpiece. so you have to jog to this point andpress x, y, z to make this position the origin.
But you can make your really own program and load them in the console.
G-code template to make your program:
scene.my.gcode=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0-
,0,0],[0,0,0],
[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,-
0],[0,0,0],
[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],-
[0,0,0]]
Controls:
Start Spindle : S key
Zero X : X key
Zero Y : Y key
Zero Z : Z key
Start CNC program : Enter Key
Manual Jog:
X: up and down arrow keys
Y: left and right arrow keys
Z: page up and page down keys
Post your g-codes in the comments, I would like to see some!
Update: Real looking EndMill. Special thanks to Legophunpp for the idea. Press S to start the spindle.