From 7ccda17cafeeea450e044ad4c6ec9e8a3e6a5123 Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 4 Dec 2017 14:19:17 +0300 Subject: [PATCH] Issue #2327: Fill gives no result Fixed --- src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.39.2