I don't know if there's a direct connection between intelligence and ugliness. At the same time, I was very book-smart in my young years, and until my mid 20's, I looked hideously, monstrously UGLY. Girls wanted nothing to do with me. Dating in high school was impossible. My first date was at 18, with a girl as unattractive as I was, and boring to boot. A waitress once said to her colleague, loud enough for me to hear, that my eyes looked gross and creepy. I used to curse myself out every time I walked past a mirror, silently in public and out loud at home alone. I even had to hire an escort to lose my virginity. In retrospect, she was a lot better-looking that anyone who would have sex with me for free back then.
If that's not ugly, then I don't know what is. At one point, I even went for a plastic surgery consultation, hoping to make my hideous, disgusting face look at least marginally attractive. Sadly for me, the cost was unaffordable.
I started to age into my looks by 25 or so, and by 28, I looked pretty handsome. I knew, because I actually started meeting girls and going on dates without too much difficulty. When I took a cruise, I was worried that I won't be able to meet girls. I was floored! Gorgeous young women treated me as a respected equal, and older women playfully flirted with me. The only downside is that I destroyed most photos of myself from puberty to age 24, by shredding or deleting. Out of 200 or so I once had in my apartment, less than 12 remain. The rest are at my parents' house.
Interestingly, around the same age my looks improved, my intelligence faltered. While I still remembered the pre-existing knowledge I had, learning new stuff became difficult. I had to sweat my butt off to study for the Network+ exam. Today, it's even worse: I have absolutely no interest in any intellectual learning.