-// 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
//
// 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<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "GeomAlgoAPI_Sewing.h"
}
//==================================================================================================
-#include <GeomAPI_ShapeExplorer.h>
#include <GeomAPI_ShapeIterator.h>
-typedef std::map<GeomShapePtr, ListOfShape, GeomAPI_Shape::Comparator> 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<GeomAPI_Shape> theShape,
ListOfShape& theHistory)
{
- static int anIndex = 0;
if(!theShape.get()) {
return;
}