+++ /dev/null
-<source>
- <shape_selector id="main_objects"
- label="Object"
- tooltip="Select a object"
- shape_types="vertex edge face solid compsolid compound object"
- default=""
- geometrical_selection="true">
- <validator id="PartSet_DifferentObjects"/>
- <validator id="GeomValidators_ShapeType" parameters="vertex,line,edge,wire,face,shell,solid,compsolid,compound"/>
- </shape_selector>
- <groupbox title="Min">
- <label id="xmincoordinate" isSelectable = "true"/>
- <label id="ymincoordinate" isSelectable = "true"/>
- <label id="zmincoordinate" isSelectable = "true"/>
- </groupbox>
- <groupbox title="Max">
- <label id="xmaxcoordinate" isSelectable = "true"/>
- <label id="ymaxcoordinate" isSelectable = "true"/>
- <label id="zmaxcoordinate" isSelectable = "true"/>
- </groupbox>
- <boolvalue id="createbox" label="Create box" default="false"/>
-</source>
--- /dev/null
+<source>
+ <shape_selector id="main_objects"
+ label="Object"
+ tooltip="Select a object"
+ shape_types="vertex edge face solid compsolid compound object"
+ default=""
+ geometrical_selection="true">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex,line,edge,wire,face,shell,solid,compsolid,compound"/>
+ </shape_selector>
+ <groupbox title="Min">
+ <label id="xmincoordinate" isSelectable = "true"/>
+ <label id="ymincoordinate" isSelectable = "true"/>
+ <label id="zmincoordinate" isSelectable = "true"/>
+ </groupbox>
+ <groupbox title="Max">
+ <label id="xmaxcoordinate" isSelectable = "true"/>
+ <label id="ymaxcoordinate" isSelectable = "true"/>
+ <label id="zmaxcoordinate" isSelectable = "true"/>
+ </groupbox>
+ <boolvalue id="createbox" label="Create box" default="false"/>
+</source>
# additional include directories
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
${PROJECT_SOURCE_DIR}/src/Locale
- ${PROJECT_SOURCE_DIR}/src/PrimitivesPlugin
${QT_INCLUDES})
# additional preprocessor / compiler flags
fillet1d_widget.xml
measurement_widget.xml
GeometryCalculation_widget.xml
- BoundingBox_widget.xml
- CreateBoundingBox_widget.xml
+ Bounding_Box_widget.xml
+ Create_Bounding_Box_widget.xml
fusion_faces_widget.xml
chamfer_widget.xml
copy_widget.xml
+++ /dev/null
-<source>
- <shape_selector id="main_objects"
- label="Object"
- tooltip="Select a object"
- shape_types="vertex edge face solid compsolid compound object"
- default=""
- geometrical_selection="true">
- <validator id="PartSet_DifferentObjects"/>
- <validator id="GeomValidators_ShapeType" parameters="vertex,line,edge,wire,face,shell,solid,compsolid,compound"/>
- </shape_selector>
- <groupbox title="Min">
- <label id="xmincoordinate" isSelectable = "true"/>
- <label id="ymincoordinate" isSelectable = "true"/>
- <label id="zmincoordinate" isSelectable = "true"/>
- </groupbox>
- <groupbox title="Max">
- <label id="xmaxcoordinate" isSelectable = "true"/>
- <label id="ymaxcoordinate" isSelectable = "true"/>
- <label id="zmaxcoordinate" isSelectable = "true"/>
- </groupbox>
-</source>
--- /dev/null
+<source>
+ <shape_selector id="main_objects"
+ label="Object"
+ tooltip="Select a object"
+ shape_types="vertex edge face solid compsolid compound object"
+ default=""
+ geometrical_selection="true">
+ <validator id="PartSet_DifferentObjects"/>
+ <validator id="GeomValidators_ShapeType" parameters="vertex,line,edge,wire,face,shell,solid,compsolid,compound"/>
+ </shape_selector>
+ <groupbox title="Min">
+ <label id="xmincoordinate" isSelectable = "true"/>
+ <label id="ymincoordinate" isSelectable = "true"/>
+ <label id="zmincoordinate" isSelectable = "true"/>
+ </groupbox>
+ <groupbox title="Max">
+ <label id="xmaxcoordinate" isSelectable = "true"/>
+ <label id="ymaxcoordinate" isSelectable = "true"/>
+ <label id="zmaxcoordinate" isSelectable = "true"/>
+ </groupbox>
+</source>
#include "FeaturesPlugin_BoundingBox.h"
+#include <Config_PropManager.h>
+
+#include <FeaturesPlugin_CreateBoundingBox.h>
+
+#include <GeomAlgoAPI_BoundingBox.h>
+
#include <ModelAPI_AttributeSelection.h>
#include <ModelAPI_AttributeDoubleArray.h>
#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_AttributeString.h>
-
-#include <GeomAlgoAPI_BoundingBox.h>
-
#include <ModelAPI_Data.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
-#include <Config_PropManager.h>
-
-#include <FeaturesPlugin_CreateBoundingBox.h>
#include <iomanip>
#include <sstream>
#include "FeaturesPlugin_CommonBoundingBox.h"
-#include <ModelAPI_AttributeSelection.h>
#include <ModelAPI_AttributeDoubleArray.h>
-#include <ModelAPI_AttributeBoolean.h>
-#include <ModelAPI_AttributeDouble.h>
-#include <GeomAlgoAPI_BoundingBox.h>
-#include <ModelAPI_AttributeString.h>
+
#include <ModelAPI_Data.h>
+#include <ModelAPI_ResultBody.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
-#include <GeomAlgoAPI_PointBuilder.h>
#include <GeomAPI_Vertex.h>
-#include <Config_PropManager.h>
-#include <ModelAPI_ResultBody.h>
+
+#include <GeomAlgoAPI_BoundingBox.h>
+#include <GeomAlgoAPI_PointBuilder.h>
#include <GeomAlgoAPI_ShapeTools.h>
-#include <PrimitivesPlugin_Box.h>
+#include <Config_PropManager.h>
#include <iomanip>
#include <sstream>
-#include <iostream>
+
//=================================================================================================
DocumentPtr aDoc = aSession->activeDocument();
GeomVertexPtr vertexFirst =
- GeomAlgoAPI_PointBuilder::vertex( aValues->value(0),
- aValues->value(2),
- aValues->value(4));
+ GeomAlgoAPI_PointBuilder::vertex(aValues->value(0),
+ aValues->value(2),
+ aValues->value(4));
GeomVertexPtr vertexSecond =
- GeomAlgoAPI_PointBuilder::vertex( aValues->value(1),
- aValues->value(3),
- aValues->value(5));
+ GeomAlgoAPI_PointBuilder::vertex(aValues->value(1),
+ aValues->value(3),
+ aValues->value(5));
std::shared_ptr<GeomAlgoAPI_Box> aBoxAlgo;
#include "FeaturesPlugin.h"
#include <ModelAPI_Feature.h>
+#include <GeomAlgoAPI_Box.h>
+
#include <GeomAPI_IPresentable.h>
#include <GeomAPI_IScreenParams.h>
-#include <GeomAlgoAPI_Box.h>
#include <ModelAPI_Attribute.h>
#include <ModelAPI_AttributeSelection.h>
#include <ModelAPI_AttributeDoubleArray.h>
-#include <ModelAPI_AttributeBoolean.h>
#include <ModelAPI_AttributeString.h>
#include <ModelAPI_Data.h>
#include <Config_PropManager.h>
#include <ModelAPI_ResultBody.h>
-#include <PrimitivesPlugin_Box.h>
-
#include <iomanip>
#include <sstream>
if (!aShape && aSelection->context())
aShape = aSelection->context()->shape();
}
- if (aShape){
+ if (aShape) {
double aXmin, aXmax, aYmin,aYmax,aZmin,aZmax;
std::string aError;
- if( !GetBoundingBox(aShape,
+ if (!GetBoundingBox(aShape,
true,
aXmin, aXmax,
aYmin,aYmax,
</feature>
<feature id="BoundingBoxMacro" title="Bounding box" tooltip="Calculate the bounding box" auto_preview="true"
icon="icons/Features/bounding.png" helpfile="boundingBoxFeature.html">
- <source path="BoundingBox_widget.xml"/>
+ <source path="Bounding_Box_widget.xml"/>
</feature>
<feature id="BoundingBox" title="Bounding box" tooltip="Calculate the bounding box" auto_preview="true"
icon="icons/Features/bounding.png" helpfile="boundingBoxFeature.html" internal="1">
- <source path="CreateBoundingBox_widget.xml"/>
+ <source path="Create_Bounding_Box_widget.xml"/>
</feature>
<feature id="Measurement" title="Measurement" tooltip="Calculate properties of objects"
icon="icons/Features/measurement.png" helpfile="measurementFeature.html" abort_confirmation="false">