I am trying to chamfer using BRepFilletAPI_MakeChamfer and by selecting the edges to chamfer with the mouse. My code is given below:
for(pContext->InitSelected(); pContext->MoreSelected(); pContext->NextSelected())
Edge = TopoDS::Edge(pContext->SelectedShape());
NewShape = MakeChamfer.Shape();
My problem is that the Add() function needs the face on which the edge lies. I cannot seem to find a way to get the face containing the edge that I have selected. Since my chamfer distances are equal it does not matter which of the two faces I get. Any one will do.