How can I secure this code? If a fillet cannot be build on Edge (ie fillet is too big for connected faces), I don't want my app crashes.
Thank you for answer.
Best regards.
thm.
Discussion
1 archived reply
Posts are displayed in their archived order.
01Commenter-1
Although OCC does occasionally crash, it is rare. It is usually pretty good about throwing exceptions or setting status flags where appropriate. First, you should definitely check IsDone() on your mkFillet object before retrieving the shape (this is defined in the base class BRepBuilderAPI_Command). Second, you should probably surround all your OCC code in a try...catch block.