]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp
Salome HOME
Plane object is added to construction plug-in
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plugin.cpp
index bd7465df58ac73ecb6e241eb462f02babbd69cdb..4ce70ae037c789ce3e0e7aa0cf788c3589355543 100644 (file)
@@ -3,6 +3,7 @@
 #include "ConstructionPlugin_Plugin.h"
 #include "ConstructionPlugin_Point.h"
 #include "ConstructionPlugin_Axis.h"
+#include "ConstructionPlugin_Plane.h"
 
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Document.h>
@@ -26,6 +27,9 @@ FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID)
   else if (theFeatureID == CONSTRUCTION_AXIS_KIND) {
     return FeaturePtr(new ConstructionPlugin_Axis);
   }
+  else if (theFeatureID == CONSTRUCTION_PLANE_KIND) {
+    return FeaturePtr(new ConstructionPlugin_Plane);
+  }
   // feature of such kind is not found
   return FeaturePtr();
 }