From: dbv Date: Mon, 4 Dec 2017 11:19:17 +0000 (+0300) Subject: Issue #2327: Fill gives no result X-Git-Tag: V_2.10.0RC~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7ccda17cafeeea450e044ad4c6ec9e8a3e6a5123;p=modules%2Fshaper.git Issue #2327: Fill gives no result Fixed --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index 37cecf7af..d10b03f1c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -246,7 +246,9 @@ void FeaturesPlugin_Boolean::execute() aMakeShapeList.appendAlgo(aBoolAlgo); - if(GeomAlgoAPI_ShapeTools::volume(aResShape) > 1.e-27) { + if(GeomAlgoAPI_ShapeTools::volume(aResShape) > 1.e-27 + || (aType != BOOL_CUT && aType != BOOL_COMMON)) + { std::shared_ptr aResultBody = document()->createBody(data(), aResultIndex); @@ -364,7 +366,9 @@ void FeaturesPlugin_Boolean::execute() aResultShape = aFillerAlgo->shape(); } - if(GeomAlgoAPI_ShapeTools::volume(aResultShape) > 1.e-27) { + if(GeomAlgoAPI_ShapeTools::volume(aResultShape) > 1.e-27 + || (aType != BOOL_CUT && aType != BOOL_COMMON)) + { std::shared_ptr aResultBody = document()->createBody(data(), aResultIndex);