Finding the parent face of an edge

given an edge selected by user from a 3D model (ie the edge is part of a wire in a face etc etc) how can i find the face/faces tha are "parent" of the edge?

Sharjith Naramparambath's picture

Check the code for the mfc samples where the chamfer is created. The method to explore the TopoDS is shown

N. Sharjith

Davide Canalia's picture

Thank you!

Marco Matt's picture

You can try TopExp::MapShapesAndAncestors