Salome HOME
Use fuzzy value within Boolean Operations.
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Boolean.cpp
index 120917cb3ee28f3c59833a58867d7f13aed0edd1..9af92e6f922bbd8d4e38f20b4cede60a7f48ad2b 100644 (file)
@@ -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())