The attached file shows a model with 2 faces highlighted (Face1.jpg and Face2.jpg), and the edge that these faces share (Edge.jpg). These pictures are here to show that OCCT is correctly detecting faces and edges on that model.
I need to check all edges of the model for their concavity, and for that I need the ancestor faces of every edge. So I checked the forums and got the following piece of code:
TopExp::MapShapesAndAncestors(modelo3D, TopAbs_EDGE, TopAbs_FACE, anEFsMap);
for(int i = 1; i
if (anEFsMap.FindFromIndex(i).Extent() != 2)
This is not working properly, for it says the number of ancestor faces is 1, for every edge.
Any guesses as to what is going on?
Thanks in advance,