Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_BooleanFill.h
index 35743ffc9cab2727d3bffbe50019f932cd188d88..ee5dcadea80e77f54d265f41034ab4ca78c4966c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -46,17 +46,19 @@ public:
   FeaturesAPI_BooleanFill(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                           const std::list<ModelHighAPI_Selection>& theMainObjects,
                           const std::list<ModelHighAPI_Selection>& theToolObjects,
-                          const ModelHighAPI_Double& theFuzzy = ModelHighAPI_Double(1.e-8));
+                          const ModelHighAPI_Double& theFuzzy = ModelHighAPI_Double(-1));
 
   /// Destructor.
   FEATURESAPI_EXPORT
   virtual ~FeaturesAPI_BooleanFill();
 
-  INTERFACE_3(FeaturesPlugin_BooleanFill::ID(),
+  INTERFACE_4(FeaturesPlugin_BooleanFill::ID(),
               mainObjects, FeaturesPlugin_BooleanFill::OBJECT_LIST_ID(),
               ModelAPI_AttributeSelectionList, /** Main objects */,
               toolObjects, FeaturesPlugin_BooleanFill::TOOL_LIST_ID(),
               ModelAPI_AttributeSelectionList, /** Tool objects*/,
+              useFuzzy, FeaturesPlugin_BooleanFill::USE_FUZZY_ID(),
+              ModelAPI_AttributeBoolean, /** Use Fuzzy parameter*/,
               fuzzyParam, FeaturesPlugin_BooleanFill::FUZZY_PARAM_ID(),
               ModelAPI_AttributeDouble, /** Fuzzy parameter */)
 
@@ -68,6 +70,10 @@ public:
   FEATURESAPI_EXPORT
   void setToolObjects(const std::list<ModelHighAPI_Selection>& theToolObjects);
 
+  /// Set use fuzzy parameter.
+  FEATURESAPI_EXPORT
+  void setUseFuzzy(bool theUseFuzzy);
+
   /// Set fuzzy parameter.
   FEATURESAPI_EXPORT
   void setFuzzyValue(const ModelHighAPI_Double& theFuzzy);
@@ -86,7 +92,7 @@ FEATURESAPI_EXPORT
 BooleanFillPtr addSplit(const std::shared_ptr<ModelAPI_Document>& thePart,
                         const std::list<ModelHighAPI_Selection>& theMainObjects,
                         const std::list<ModelHighAPI_Selection>& theToolObjects,
-                        const ModelHighAPI_Double& fuzzyParam = ModelHighAPI_Double(1.e-8),
+                        const ModelHighAPI_Double& fuzzyParam = ModelHighAPI_Double(-1),
                         const bool keepSubResults = false);
 
 #endif // FeaturesAPI_BooleanFill_H_