From: Artem Zhidkov Date: Wed, 3 Jun 2020 11:21:16 +0000 (+0300) Subject: Use fuzzy value within Boolean Operations. X-Git-Tag: V9_5_0rc1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26d829a49ebf99207ac45f80a6a2d7a3cca78a69;p=modules%2Fshaper.git Use fuzzy value within Boolean Operations. --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp index 120917cb3..9af92e6f9 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp @@ -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())