Optimizing the Nozzle Path in the 3D Printing Process