]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2327: Fill gives no result
authordbv <dbv@opencascade.com>
Mon, 4 Dec 2017 11:19:17 +0000 (14:19 +0300)
committerdbv <dbv@opencascade.com>
Mon, 4 Dec 2017 11:19:57 +0000 (14:19 +0300)
Fixed

src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp

index 37cecf7af1755b4366c65b3d8ee1bb9fc749444f..d10b03f1c365ed906aefd7150e61682d5bea1328 100644 (file)
@@ -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<ModelAPI_ResultBody> 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<ModelAPI_ResultBody> aResultBody =
             document()->createBody(data(), aResultIndex);