G-Code generator for 3D printer testing purpose