Crash with BRepFilletAPI_MakeFillet

Hi guys! I have a simple cube and would like to make a fillet on one of the edges. Here's the code I'm using

BRepFilletAPI_MakeFillet mkFillet(body, ChFi3d_Rational);

TopExp_Explorer aEdgeExplorer;
aEdgeExplorer.Init(body, TopAbs_EDGE, 0);
while (aEdgeExplorer.More())
TopoDS_Edge aEdge = TopoDS::Edge(aEdgeExplorer.Current());

mkFillet.Add(0.01, aEdge);
currentShape = mkFillet.Shape();

As soon as the last line is executed, the program crashes. Any idea why? Many thanks in advance!

bcarneiro's picture

and sorry, here's the file

Forum supervisor's picture

Dear Bernardo,
I would like to inform you that the posted problem has been checked and reproduced:
- Debug mode => crash
- Release mode => empty result
The corresponding issue with ID = 22821 has been registered.
Later you may check if the issue is resolved by checking references to the specified ID in OCCT Release Notes. The analysis of the issue will take some time depending on our technical capability and availability of resources.
If the problem is urgent for you, you may contact us via the Contact Form