Forum archiveIssue archiveModeling Data and Algorithms

Archived discussion

BRepFilletAPI_MakeFillet crash in occt 7.4.0

Modeling Data and AlgorithmsThu, 05/07/2020 - 21:532 replies

Browse this forum
QuestionAuthor

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 (...)
    {

    }

 

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Commenter-2

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,

Commenter-2