how to judge adjacency?

hellow,

i'm trying to judge the adjacency between tow (TopoDS_Face)s. Is there any API? There are tow ways I think are available :

1) use BRepAlgo_Section API to find the common edge in both faces

2) use Explore to find the common edge

Is there more convenient or more efficient way? 

Thanks in advance.

Benjamin Bihler's picture

I guess the second approach should be quite efficient.

Benjamin