Design of rotatable direct energy deposition optical system