Salome HOME
Fix for the problem if disappeared sketch elements (on Apply) inside of sketch in...
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Partition.cpp
index 66a64ba435017e15ef2fa1c3853a286f408c3b40..74e68707e8fcece75c4a2a745691d4163521ea9f 100755 (executable)
@@ -127,7 +127,7 @@ void FeaturesPlugin_Partition::execute()
       return;
     }
 
-    if (GeomAlgoAPI_ShapeTools::volume(aPartitionAlgo->shape()) > 1.e-7) {
+    if (GeomAlgoAPI_ShapeTools::volume(aPartitionAlgo->shape()) > 1.e-27) {
       std::shared_ptr<ModelAPI_ResultBody> aResultBody = document()->createBody(data(), aResultIndex);
       aMakeShapeList.appendAlgo(aPartitionAlgo);
       GeomAPI_DataMapOfShapeShape& aMapOfShapes = *aPartitionAlgo->mapOfSubShapes().get();
@@ -162,7 +162,7 @@ void FeaturesPlugin_Partition::execute()
         return;
       }
 
-      if (GeomAlgoAPI_ShapeTools::volume(aPartitionAlgo->shape()) > 1.e-7) {
+      if (GeomAlgoAPI_ShapeTools::volume(aPartitionAlgo->shape()) > 1.e-27) {
         std::shared_ptr<ModelAPI_ResultBody> aResultBody = document()->createBody(data(), aResultIndex);
         GeomAlgoAPI_MakeShapeList aMakeShapeListCopy = aMakeShapeList;
         aMakeShapeListCopy.appendAlgo(aPartitionAlgo);