Find out the sewn edges of a solid?

Hi all!

I have a problem with my project and i need to find out the sewn edges of a solid. Can somebody help me?

Roman Lygin's picture

If you take an OCC 3D viewer with default color conventions - you will notice that there are several colors used for edges in wireframe mode. In particular, yellow - for shared, green - for free (belonging to one face only), or red - for floating (not belonging to any face). You may want to explore the source code.
Basically the idea is exploring the shape by edges (TopExp_Explorer) and putting them into the map. If an edge is met for 2nd time, it is shared otherwise - it's free or floating.

Hope this helps.