#include <FeaturesPlugin_Boolean.h>
#include <FeaturesPlugin_Extrusion.h>
#include <FeaturesPlugin_Group.h>
+#include <FeaturesPlugin_Placement.h>
#include <ModelAPI_Session.h>
return FeaturePtr(new FeaturesPlugin_Boolean);
} else if (theFeatureID == FeaturesPlugin_Group::ID()) {
return FeaturePtr(new FeaturesPlugin_Group);
+ } else if (theFeatureID == FeaturesPlugin_Placement::ID()) {
+ return FeaturePtr(new FeaturesPlugin_Placement);
}
// feature of such kind is not found
return FeaturePtr();
--- /dev/null
+<source>
+ <shape_selector id="placement_base_face"
+ label="Select a face"
+ icon=":icons/cut_shape.png"
+ tooltip="Select a face a one object"
+ shape_types="face"
+ use_subshapes="true"
+ />
+ <shape_selector id="placement_attractable_face"
+ label="Select a face"
+ icon=":icons/cut_shape.png"
+ tooltip="Select a face of another object"
+ shape_types="face"
+ use_subshapes="true"
+ />
+</source>
<source path="boolean_widget.xml"/>
</feature>
<feature id="Placement" title="Placement" tooltip="Perform moving an object to specified position" icon="">
-<!-- <source path="extrusion_widget.xml"/>-->
+ <source path="placement_widget.xml"/>
</feature>
</group>
<group id="Collections">