Get face created from fillet / chamfer

I am trying to use BRepFilletAPI_MakeChamfer and BRepFilletAPI_MakeFillet to alter a TopoDS_Shape. I would like to log these operations and have a way to reference the resultant feature from the operation (highlighting the face produced from the chamfer or fillet). I have looked into the documentation and found https://dev.opencascade.org/doc/refman/html/class_b_rep_fillet_a_p_i___m... and https://dev.opencascade.org/doc/refman/html/class_b_rep_fillet_a_p_i___m... but could not figure out how to use them to retrieve the new faces.

Are these the right functions to use, and if so, what is the proper usage of them to get the TopoDS_Face produced from the operation.

Thanks in advance!

Jacob Bandyk's picture

After looking into this more I was able to get the desired behavior by first calling Shape() before accessing the new face from Generated()