Manufacturability Oriented Model Correction and Build Direction Optimization for Additive Manufacturing