how to traversal adjacency face?

Hello all!
TopExp_Explorer is used to traversal in TopoDS_Shape. But how to traversal with any specific condition? For example, I create a Box by BRepPrimAPI_MakeBox and i want to get all the faces that adjacency to the right-face which should contain top-face, front-face, bottom-face and back-face.
Thx!

jelle's picture

Filtering out these specific conditions is not something a topology traversal API should facilitate.
What I suggest is that you compute the normal of the faces and use that information to filter out those faces.