]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMImpl/GEOMImpl_IPartition.hxx
Salome HOME
[bos #40619][CEA] Add Fuzzy parameter to partition and boolean operators
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IPartition.hxx
index 6975ea463aec439b6ce318b53478892aba91c512..1b49e268c0618dc0ea4566bb281ef7054bf4caf7 100644 (file)
@@ -40,6 +40,7 @@
 
 #define PART_ARG_KEEP_NONLIMIT_SHAPES 9
 #define PART_ARG_CHECK_SELF_INTERSECTION 10
+#define PART_ARG_FUZZY_PARAMETER 11
 
 class GEOMImpl_IPartition
 {
@@ -70,6 +71,9 @@ class GEOMImpl_IPartition
   void SetCheckSelfIntersection (Standard_Boolean theFlag)
   { _func->SetInteger(PART_ARG_CHECK_SELF_INTERSECTION, theFlag ? 1 : 0); }
 
+  void SetFuzzyParameter (Standard_Real theValue)
+  { _func->SetReal(PART_ARG_FUZZY_PARAMETER, theValue); }
+
   int GetLimit() { return _func->GetInteger(PART_ARG_LIMIT); }
 
   int GetKeepNonlimitShapes() { return _func->GetInteger(PART_ARG_KEEP_NONLIMIT_SHAPES); }
@@ -91,6 +95,9 @@ class GEOMImpl_IPartition
   Standard_Boolean GetCheckSelfIntersection()
   { return (_func->GetInteger(PART_ARG_CHECK_SELF_INTERSECTION) != 0); }
 
+  Standard_Real GetFuzzyParameter()
+  { return _func->GetReal(PART_ARG_FUZZY_PARAMETER); }
+
  private:
 
   Handle(GEOM_Function) _func;