Salome HOME
Revert "CEA : Lot2 - Normal to a face"
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Boolean.cpp
index 4b668f5d98637d0da5e34cd16648992eee059be7..a503c7d64e9bd45b165fb259f2759d5b177439ed 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -110,6 +110,10 @@ void GeomAlgoAPI_Boolean::build(const ListOfShape& theObjects,
   Standard_Boolean bRunParallel = Standard_True;
   aBuilder->SetRunParallel(bRunParallel);
 
+  // Set fuzzy value to eliminate thin results
+  static const Standard_Real aFuzzy = 1.e-5;
+  aBuilder->SetFuzzyValue(aFuzzy);
+
   // Building and getting result.
   aBuilder->Perform();
   if (aBuilder->HasErrors())