TopTools_IndexedDataMapOfShapeListOfShape facesOfEdgeMap;
TopTools_IndexedMapOfShape hypFaces; // faces with VL hyps
TopExp::MapShapes(shape, TopAbs_FACE, hypFaces); //shape 为一个立方体
for (int iF = 1; iF <= hypFaces.Extent(); ++iF)
{
TopExp::MapShapesAndAncestors(hypFaces(iF), TopAbs_EDGE, TopAbs_FACE, facesOfEdgeMap);
}
for (int iE = 1; iE <= facesOfEdgeMap.Extent(); ++iE)
{
qDebug() << "facesOfEdgeMap"<< facesOfEdgeMap(iE).Extent(); //为什么打印全部为1,立方体面与面存在共享边,应该有大于1的情况吧
}