Salome HOME
Create Boolean operations
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Plugin.cpp
index 1ae9381cd9253ab3b3bb5792bd65b1bd8384a9fa..5c3fd3a4335c3beb3d5126536b28c03c9d392b96 100644 (file)
@@ -1,5 +1,6 @@
 #include "FeaturesPlugin_Plugin.h"
 #include "FeaturesPlugin_Extrusion.h"
+#include "FeaturesPlugin_Boolean.h"
 
 #include <ModelAPI_PluginManager.h>
 #include <ModelAPI_Document.h>
@@ -9,7 +10,7 @@ using namespace std;
 // the only created instance of this plugin
 static FeaturesPlugin_Plugin* MY_INSTANCE = new FeaturesPlugin_Plugin();
 
-FeaturesPlugin_Plugin::FeaturesPlugin_Plugin() 
+FeaturesPlugin_Plugin::FeaturesPlugin_Plugin()
 {
   // register this plugin
   ModelAPI_PluginManager::get()->registerPlugin(this);
@@ -19,6 +20,9 @@ FeaturePtr FeaturesPlugin_Plugin::createFeature(string theFeatureID)
 {
   if (theFeatureID == FeaturesPlugin_Extrusion::ID()) {
     return FeaturePtr(new FeaturesPlugin_Extrusion);
+  } else
+  if (theFeatureID == FeaturesPlugin_Boolean::ID()) {
+    return FeaturePtr(new FeaturesPlugin_Boolean);
   }
   // feature of such kind is not found
   return FeaturePtr();