X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_PaveFiller.cpp;h=27af42e71a7ebaacad2f7a20cdcb184a637aecb6;hb=ac6689aff8d62d06f13c278d146978a303a0e7db;hp=7a2e45baa02b9ae2d7dc8bc5f448105f0631695c;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_PaveFiller.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_PaveFiller.cpp index 7a2e45baa..27af42e71 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_PaveFiller.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_PaveFiller.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 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 @@ -27,17 +27,20 @@ #include #include + //================================================================================================= 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;