Salome HOME
updated copyright message
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_PaveFiller.cpp
index 1ac8829a2633fb963fe7d04c087c60fe7b569cd9..5dba2d408d21808287794343946969965b9431bd 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  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
 #include <TopoDS_Builder.hxx>
 #include <TopoDS_Iterator.hxx>
 
+
 //=================================================================================================
 GeomAlgoAPI_PaveFiller::GeomAlgoAPI_PaveFiller(const ListOfShape& theListOfShape,
-                                               const bool theIsMakeCompSolids)
+                                               const bool theIsMakeCompSolids,
+                                               const double theFuzzy)
 {
-  build(theListOfShape, theIsMakeCompSolids);
+  build(theListOfShape, theIsMakeCompSolids, theFuzzy);
 }
 
 
 //=================================================================================================
 void GeomAlgoAPI_PaveFiller::build(const ListOfShape& theListOfShape,
-                                   const bool theIsMakeCompSolids)
+                                   const bool theIsMakeCompSolids,
+                                   const double theFuzzy)
 {
   BOPAlgo_PaveFiller* aPaveFiller = new BOPAlgo_PaveFiller;
   TopTools_ListOfShape aListOfShape;
@@ -53,6 +56,7 @@ void GeomAlgoAPI_PaveFiller::build(const ListOfShape& theListOfShape,
     }
   }
   aPaveFiller->SetArguments(aListOfShape);
+  if (theFuzzy > 0) aPaveFiller->SetFuzzyValue(theFuzzy);
   aPaveFiller->Perform();
   if (aPaveFiller->HasErrors())
     return;
@@ -61,6 +65,7 @@ void GeomAlgoAPI_PaveFiller::build(const ListOfShape& theListOfShape,
   this->setImpl(aBuilder);
   this->setBuilderType(OCCT_BOPAlgo_Builder);
   aBuilder->SetArguments(aListOfShape);
+  if (theFuzzy > 0) aBuilder->SetFuzzyValue(theFuzzy);
   aBuilder->PerformWithFiller(*aPaveFiller);
   if (aBuilder->HasErrors())
     return;