Generation of continuous hybrid zig-zag and contour paths for 3D printing