From 26d829a49ebf99207ac45f80a6a2d7a3cca78a69 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 3 Jun 2020 14:21:16 +0300 Subject: [PATCH] Use fuzzy value within Boolean Operations. --- src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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()) -- 2.39.2