X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Partition.cpp;h=6f689cf16c81091784972da80f3d7007b60c5a0a;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=0da316310a5944642dd003672beca3f713e83e12;hpb=380f01e1fce1a012267d604a1190d04bf4659447;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp index 0da316310..6f689cf16 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // 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())