Skip to content
Snippets Groups Projects
Commit b63ce0c4 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

only issue a warning if fragmenting returns BOPAlgo_AlertTooFewArguments error

parent 66e76bd6
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
#if defined(HAVE_OCC)
#include <BOPAlgo_Alerts.hxx>
#include <BRepAlgoAPI_Common.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
......@@ -3634,6 +3635,11 @@ bool OCC_Internals::booleanOperator(
fragments.SetArguments(objectShapes);
if(tolerance > 0.0) fragments.SetFuzzyValue(tolerance);
fragments.Build();
if(fragments.HasErrors() &&
fragments.HasError(STANDARD_TYPE(BOPAlgo_AlertTooFewArguments))) {
Msg::Warning("Boolean fragments skipped - too few arguments");
return true;
}
if(!fragments.IsDone()) {
Msg::Error("Boolean fragments failed");
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment