Designing mechanical parts for 3D printing