Parse and simplify gcode generated by Slic3r.