X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_Sewing.cpp;h=3d9630ecf05164ac581e4f03dfffae614b862ef9;hb=ced2b33b41ece5969c897328e7a914b572be40e7;hp=3510f87357a3482aab5a2e84868cbec84f5bfd3f;hpb=696c11e9e4cb089e1c5496dac79420147d85496a;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Sewing.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Sewing.cpp index 3510f8735..3d9630ecf 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Sewing.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Sewing.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 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 @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "GeomAlgoAPI_Sewing.h" @@ -80,34 +79,11 @@ void GeomAlgoAPI_Sewing::build(const ListOfShape& theShapes) } //================================================================================================== -#include #include -typedef std::map MapFaceSolid; -static void facesBelongingToSolids(const GeomShapePtr& theShape, - MapFaceSolid& theShapeRelations) -{ - for (GeomAPI_ShapeExplorer aSolidExp(theShape, GeomAPI_Shape::SHELL); - aSolidExp.more(); aSolidExp.next()) { - GeomShapePtr aSolid = aSolidExp.current(); - for (GeomAPI_ShapeExplorer aFaceExp(aSolid, GeomAPI_Shape::FACE); - aFaceExp.more(); aFaceExp.next()) - theShapeRelations[aFaceExp.current()].push_back(aSolid); - } -} - -static bool isShapeInList(const GeomShapePtr& theShape, const ListOfShape& theList) -{ - for (ListOfShape::const_iterator anIt = theList.begin(); anIt != theList.end(); ++anIt) - if (theShape->isEqual(*anIt)) - return true; - return false; -} - void GeomAlgoAPI_Sewing::modified(const std::shared_ptr theShape, ListOfShape& theHistory) { - static int anIndex = 0; if(!theShape.get()) { return; }