Resolution-aware Slicing of CAD Data for 3D Printing