Convert a height field into G-code for a CNC router table