X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_Face.h;h=1545de1a9b936e0834c99ee303f70ded4edd14f1;hb=c4eab94a20a0d93100549a210582d46409fec1cc;hp=f6c27632541bc2148c204562297a6b14887be027;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Face.h b/src/BuildPlugin/BuildPlugin_Face.h index f6c276325..1545de1a9 100644 --- a/src/BuildPlugin/BuildPlugin_Face.h +++ b/src/BuildPlugin/BuildPlugin_Face.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 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,23 +12,25 @@ // // 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 // #ifndef BuildPlugin_Face_H_ #define BuildPlugin_Face_H_ #include "BuildPlugin.h" +#include "BuildPlugin_Shape.h" -#include +class GeomAPI_Dir; +class GeomAPI_Shape; +class GeomAlgoAPI_MakeShape; /// \class BuildPlugin_Face /// \ingroup Plugins /// \brief Feature for creation of face from sketch edges or existing wires. -class BuildPlugin_Face: public ModelAPI_Feature +class BuildPlugin_Face: public BuildPlugin_Shape { public: /// Use plugin manager for features creation @@ -60,6 +62,13 @@ public: /// Creates a new part document if needed. BUILDPLUGIN_EXPORT virtual void execute(); + +private: + /// Create faces basing on the list of edges + void buildFacesByEdges(const std::list< std::shared_ptr >& theEdges, + const std::list< std::shared_ptr >& theNormals, + std::list< std::shared_ptr >& theFaces, + std::shared_ptr& theBuilderAlgo) const; }; #endif