If you’re working in computer graphics and you haven’t seen the Real-Time Rendering blog, you should check it out. Recently, Eric Haines posted a tip on looping through polygon edges. Having spent a lot of time vacillating on how to solve this problem in my own code, I really appreciated this analysis. Maybe you will too.