20 #ifndef BuildPlugin_Face_H_
21 #define BuildPlugin_Face_H_
23 #include "BuildPlugin.h"
24 #include "BuildPlugin_Shape.h"
40 inline static const std::string&
ID()
42 static const std::string MY_ID(
"Face");
49 static const std::string MY_BASE_OBJECTS_ID(
"base_objects");
50 return MY_BASE_OBJECTS_ID;
54 BUILDPLUGIN_EXPORT
virtual const std::string&
getKind()
64 BUILDPLUGIN_EXPORT
virtual void execute();
68 void buildFacesByEdges(
const std::list< std::shared_ptr<GeomAPI_Shape> >& theEdges,
69 const std::list< std::shared_ptr<GeomAPI_Dir> >& theNormals,
70 std::list< std::shared_ptr<GeomAPI_Shape> >& theFaces,
71 std::shared_ptr<GeomAlgoAPI_MakeShape>& theBuilderAlgo)
const;
73 void buildNonPlanarFacesByEdges(
const ListOfShape& theShapes,
74 ListOfShape& theFaces,
75 std::shared_ptr<GeomAlgoAPI_MakeShape>& theBuilderAlgo)
const;
Feature for creation of face from sketch edges or existing wires.
Definition: BuildPlugin_Face.h:34
BuildPlugin_Face()
Use plugin manager for features creation.
Definition: BuildPlugin_Face.cpp:38
virtual void execute()
Creates a new part document if needed.
Definition: BuildPlugin_Face.cpp:49
static const std::string & ID()
Feature kind.
Definition: BuildPlugin_Face.h:40
virtual const std::string & getKind()
Definition: BuildPlugin_Face.h:54
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: BuildPlugin_Face.cpp:43
static const std::string & BASE_OBJECTS_ID()
Attribute name of base objects.
Definition: BuildPlugin_Face.h:47
Base class containing common methods for shape creating operations.
Definition: BuildPlugin_Shape.h:35
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43
Interface to the root class of all topological shapes constructions.
Definition: GeomAlgoAPI_MakeShape.h:35