Edge shapes implementation

Hi all,

My apologies if this is the wrong place to be asking this, as I'm wondering about an implementation detail of Box2D, rather than how to use it.
Specifically I've seen a lot of posts on the net about problems with 2D platformers using Box2D, in which player characters can get stuck while sliding over the join between two edge shapes.
I've also read that this was solved by using adjacency information, so that each edge shape knows which edge shape it's connected to on either side.
I'm just curious to know how this works exactly. I've looked over the edge shape code and although I see some calculations involving upper and lower normal limits I'm not really sure what the idea behind the code is or how it works.

My reason for asking is that I'm trying to implement a 2D platform game physics engine and I'm encountering the same issue, so I was wondering how Box2D solves it, so I can try a similar thing in my engine.
A more detailed description of the problem I'm having is in this post I made on stackexchange:
http://gamedev.stackexchange.com/questi ... oping-grou

Any help would be greatly appreciated.
The main idea is to eliminate contact normals that don't make sense. The adjacent edges are needed to build the range of normals that make sense. Normals that fall outside that range are rejected.

This was not an easy task. It took me awhile to come up with a good system.

Original thread: https://box2d.org/forum/viewtopic.php?t=8321