BRepFilletAPI_MakeFillet crash in occt 7.4.0

Hello everyone, I am using occt7.4.0. In the process of using,

I found that using BRepFilletAPI_MakeFillet to fillet the corners of the cube will crash. The flow of the function call when I debug is in the picture in the appendix.

The code for the corners is as follows:

  try {
        OCC_CATCH_SIGNALS
        TopoDS_Solid Box = BRepPrimAPI_MakeBox(100,100,100);
        BRepFilletAPI_MakeFillet MF(Box);

        // add all the edges to fillet
        TopExp_Explorer ex(Box,TopAbs_EDGE);

        while (ex.More())
        {
            MF.Add(5,TopoDS::Edge(ex.Current()));
            ex.Next();
        }
        Handle(AIS_Shape) aisshape=new AIS_Shape(MF.Shape());
        myContext->Display(aisshape,Standard_True);
    }
    catch (StdFail_NotDone &sf)
    {
    }
    catch (Standard_Failure &sf)
    {
    }
    catch (...)
    {

    }

 

Jacob Bandyk's picture

I am experiencing this same issue. Were you ever able to find a solution/cause?

Artem Zhidkov's picture

Dear Jacob,

There is no such problem on the latest version of OCCT (7.6.0, I mean). So, you may check the difference in the algorithm since 7.4.0 or migrate to 7.6.0.

Regards,

Artem