Computer-aided torch trajectory generation for automated coating of parts with complex surfaces