Finding faces attached to an edge?

How do I find faces attached to an edge in Opencascade?

Gabriel Bauer's picture

I'm assuming that you have an edge and want to get all the faces that this edge belongs.
So you can use the method TopExp::MapShapesAndAncestors.

After you need to find your edge in the map, its bind with a list of faces.


ataeft's picture

Thank you very much, do you also know how if there is any method to see if an edge (of a polyhedron) is concave or convex? I know there is a convex() method in TopoDS_Edge but it is not working correctly!