BRepFilletAPI_MakeFillet crash: StdFail_NotDone: BRep_API: command not done

I use BRepPrimAPI_MakePrism get the shape, then I apply BRepFilletAPI_MakeFillet carsh when shape = mkFillet.Shape();. But when the radius is 0.2, it is work well.I am using occt7.6.0

crash msg 000000000E6E4640 : StdFail_NotDone: BRep_API: command not done,

                BRepFilletAPI_MakeFillet mkFillet(shape);
        TopExp_Explorer anEdgeExplorer(shape, TopAbs_EDGE);
        while (anEdgeExplorer.More()) {
            TopoDS_Edge anEdge = TopoDS::Edge(anEdgeExplorer.Current());

            mkFillet.Add(1, anEdge);

Eugene Zaliznyak's picture

It would be better to check result by IsDone() method.

David Jack's picture

And if not done, How can I fix it