BRepFilletAPI_MakeChamfer AddDA API To Create Top/Bottom Bevel


I am new to this forum. I am trying to use the BRepFilletAPI_MakeChamfer API to create a Top bevel on a flat plate. I have attached image for better explanation.

If the plate thickness = 10 and Bevel angle = 45 then using the AddDA API to get a top bevel I input an edge, give the swarf face as input and Distance = 10 and Angle =45.

But for some reason the BRepFilletAPI_MakeChamfer.Shape API throws exception and fails to create chamfer.

Observation : In case I imput Distance = 9.9999 then the API seems to work. But this would leave a small area face somewhere in the body which I do not want.

Can I get some help on this please?

Forum supervisor's picture

Dear  Ivy,

In current implementation MakeChamfer allows creating chamfers for the cases excluding a change of object topology.

In your test case creating of a chamfer with Distance =10 for T=10 means that correspondent vertical face of source object has to be completely removed from result object topology.

To make the required precise chamfer you can use Boolean cut operation. The Draw script below demonstrates correspondent example.

pload ALL

box bb 10 10 10



plane pl 0 0 0 -1 0 1

trim pl pl -20 20 -20 20

don bb pl



mkface fp pl

don bb fp

help *half*

halfspace hs fp 0 0 10

bop bb hs

bopcut r1

don r1

Welcome to our resources and communicate us via Contact Form to exchange information about our services and expertise and needs of your company projects.


Best Regards,

Forum supervisor

Ivy Monteiro's picture

Thank you. Appreciate your help. But that Boolean operation would get complicated in case of a arc/spline edge input right?