b2ContactID & Features Classes

Can anyone explain the b2ContactID & Features classes? I understand their purpose - generating unique ids for contact points - but am curious to how they work and how I may be able to pull information out of them.

Specifically, I'm interested in querying the contact ID to see if a ContactPoint involves a particular edge of a Polygon. I'm trying to nail down the one-sided/jump-through platform problem and it seems like filtering contacts based on what edge is involved seems to be the simplest solution (for non-gravity oriented platforms).

Thanks!
The contents of the contact id depend on the shape pairs. There is different data for circle-circle, circle-polygon, polygon-polygon. I don't have the code in front of me, but I know the data is subject to change. Can you identify the face using the contact normal?
This was a little helpful:

http://www.bulletphysics.com/Bullet/php ... f=4&t=1451

I started to make the assumption that for a contact involving, say edge # 0, either the referenceEdge or the incidentEdge would be 0, and I can predict which it'll be by looking at the "flip." After some testing though that appears wrong.

I'm just looking for some elaboration on the definition of "referenceEdge", "incidentEdge" and "incidentVertex" (for just poly-poly contacts). I think my understanding may be fundamentally wrong.

I could use the normal and loop through the polygon points, but this gets complicated on the shape corners. Plus I'm genuinely interesting in understanding how this all works.
The reference face has a defines the contact normal. The incident face is the face on the other poly that has a normal that is the most anti-parallel to the contact normal. If flip is false, the reference face belongs to shape 1 (A). If flip is true, the reference face belongs to shape 2 (B).
Erin - Thank you for your explanation. Turns out I was correct in my understanding. I ended up using the contact normals for this particular problem but always enjoy digging into the low level concepts, even if there's no practical gain. Here's another useful link for anyone interested:

http://lab.polygonal.de/2009/01/11/feat ... lgorithms/

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