Forum archiveIssue archiveModeling Data and Algorithms

Archived discussion

BRepFilletAPI_MakeFillet and Law_Function

Modeling Data and AlgorithmsSun, 08/16/2020 - 17:114 replies

Browse this forum
QuestionAuthor

Has anybody ever successfully created a fillet using a Law_Function with BRepFilletAPI_MakeFillet. If so an example would be greatly appreciated. I have tried numerous experiments with all relative functions and got nothing but errors or exceptions.

BRepFilletAPI_MakeFillet::Add (const Handle< Law_Function > &L, const TopoDS_Edge &E)

BRepFilletAPI_MakeFillet::SetRadius (const Handle< Law_Function > &L, const Standard_Integer IC, const Standard_Integer IinC)

BRepFilletAPI_MakeFillet::SetLaw (const Standard_Integer IC, const TopoDS_Edge &E, const Handle< Law_Function > &L)

 

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

I also need to create a fillet with a Law_Function. I tried a very simple one with Law_Constant but I am also getting errors all the time.

My crash occurs in ChFiDS_FilSpine.cxx Line 66:
He tries to access the list parandrad.first(), which is empty in the case of a law. It seems to me that the combination of law and fillet can not work at the moment.

Has anyone other experiences?

I am using OCC 7.6.3.

Best Regards,
Commenter-1

02Author

I finally decided that the law interface was never fully implemented. I altered occt to allow the usage of a law curve.
https://gitlab.com/blobfish/occt/-/commit/82f0bf88dd089baefdbf8682eef5d2...

03Commenter-2

Thank you a lot. We will check your update and adapt to OCCT if you don't mind.

Best regards, Commenter-2.

04Author

I don't mind, but be aware that I have not and won't sign the CLA.