X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Partition.cpp;h=bf5075d38f5b0b7c51acd75428bb17a38c6f6a1c;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=3d31360f8c175433ac3b9d9bd7162f68fd7ca178;hpb=47bec5ba5234d6aa1d0cd784dfb2c21dc0b1f37d;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp index 3d31360f8..bf5075d38 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 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 @@ -127,9 +127,10 @@ static void sortCompound(TopoDS_Shape& theCompound, GEOMAlgo_Splitter* theOperat //================================================================================================= GeomAlgoAPI_Partition::GeomAlgoAPI_Partition(const ListOfShape& theObjects, - const ListOfShape& theTools) + const ListOfShape& theTools, + const double theFuzzy) { - build(theObjects, theTools); + build(theObjects, theTools, theFuzzy); } static void prepareShapes(const TopoDS_Shape& theShape, @@ -150,7 +151,8 @@ static void prepareShapes(const TopoDS_Shape& theShape, //================================================================================================= void GeomAlgoAPI_Partition::build(const ListOfShape& theObjects, - const ListOfShape& theTools) + const ListOfShape& theTools, + const double theFuzzy) { if (theObjects.empty()) { return; @@ -200,6 +202,8 @@ void GeomAlgoAPI_Partition::build(const ListOfShape& theObjects, Standard_Boolean bRunParallel = Standard_True; anOperation->SetRunParallel(bRunParallel); + if (theFuzzy > 0) anOperation->SetFuzzyValue(theFuzzy); + // Building and getting result. anOperation->Perform(); if (anOperation->HasErrors())