BRepFilletAPI_MakeFillet and Law_Function

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)

 

Alexander Luger's picture

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,
Alexander

Thomas Anderson's picture

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...

Dmitrii Pasukhin's picture

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

Best regards, Dmitrii.

Thomas Anderson's picture

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