3D Printing of Nonplanar Layers for Smooth Surface Generation