If I understand your question, you want to know if a wire is the outline of a face or a hole. You can try getting the outermost wire of the face using BRepTools::OuterWire. You can then, if necessary, get the distance between this wire and a vertex on the wire of interest (BRepExtrema_DistShapeShape). If the distance is essentially 0, you have your outer wire. Of course it's possible that once you have the outer wire, the rest is easy.
Archived discussion
about wire from face
how to judge the wire by inner-circled or outer-circled face ?
thanks
Discussion
1 archived reply
Posts are displayed in their archived order.