20 #ifndef FeaturesPlugin_Defeaturing_H_
21 #define FeaturesPlugin_Defeaturing_H_
23 #include "FeaturesPlugin.h"
25 #include <ModelAPI_Feature.h>
37 inline static const std::string&
ID()
39 static const std::string MY_ID(
"Defeaturing");
44 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
53 static const std::string MY_OBJECT_LIST_ID(
"main_objects");
54 return MY_OBJECT_LIST_ID;
58 FEATURESPLUGIN_EXPORT
virtual void execute();
68 void loadNamingDS(std::shared_ptr<ModelAPI_ResultBody> theResultBody,
69 const std::shared_ptr<GeomAPI_Shape> theBaseShape,
70 const std::shared_ptr<GeomAPI_Shape> theResultShape,
71 const std::shared_ptr<GeomAlgoAPI_MakeShape>& theMakeShape);
Feature for the removal of the unwanted parts or features from the model.
Definition: FeaturesPlugin_Defeaturing.h:34
FeaturesPlugin_Defeaturing()
Use plugin manager for features creation.
Definition: FeaturesPlugin_Defeaturing.cpp:35
virtual void execute()
Performs the defeaturing algorithm and stores it in the data structure.
Definition: FeaturesPlugin_Defeaturing.cpp:45
virtual const std::string & getKind()
Definition: FeaturesPlugin_Defeaturing.h:44
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_Defeaturing.cpp:39
static const std::string & OBJECT_LIST_ID()
Attribute name of main objects.
Definition: FeaturesPlugin_Defeaturing.h:51
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Defeaturing.h:37
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
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41