Flange edge



I'm working with sheet metal, and need to find a flange, which is also the edge of the body. I know there might be more than one flange which is external, it doesn't matter wich one.

How can I figure out if the flange is at the edge?


Thank you