ListOfShape::const_iterator anIt = aFaces.cbegin();
for(; anIt != aFaces.cend(); ++anIt) {
GeomShapePtr aFacePtr = *anIt;
- if (!aFacePtr.get())
- setError("GetSharedFaces : An invalid face found " + anError);
aFacesListAttr->append( aCompSolidAttr->context(), aFacePtr);
}
std::stringstream aLabel;
#include <ModelAPI_Feature.h>
#include <ModelAPI_ResultGroup.h>
-#include <GeomAPI_IPresentable.h>
-#include <GeomAPI_IScreenParams.h>
-
-
/// \class FeaturesPlugin_CommonSharedFaces
/// \ingroup Plugins
/// \brief Feature to check the shared faces of solid
#include <ModelAPI_Tools.h>
#include <ModelAPI_Validator.h>
-#include <GeomAPI_ShapeIterator.h>
-
-#include <GeomAlgoAPI_CompoundBuilder.h>
-#include <GeomAlgoAPI_ShapeTools.h>
-
#include <Locale_Convert.h>
//=================================================================================================
#include <ModelAPI_Tools.h>
#include <ModelAPI_Validator.h>
-#include <GeomAPI_ShapeIterator.h>
-
-#include <GeomAlgoAPI_CompoundBuilder.h>
-#include <GeomAlgoAPI_ShapeTools.h>
-#include <GeomAlgoAPI_SharedFaces.h>
-
//=================================================================================================
FeaturesPlugin_SharedFaces::FeaturesPlugin_SharedFaces()
{
<source path="chamfer_widget.xml"/>
</feature>
<feature id="FusionFaces" title="Fuse Faces" tooltip="Performs fusion of connected faces"
- icon="icons/Features/fusion_faces.png" auto_preview="true" helpfile="FeaturesPlugin/fusionFacesFeature.html">
+ icon="icons/Features/fusion_faces.png" auto_preview="true" helpfile="fusionFacesFeature.html">
<source path="fusion_faces_widget.xml"/>
</feature>
<feature id="Defeaturing" title="Defeaturing" tooltip="Perform removing faces from solid"
</integervalue>
<optionalbox id="create_group" title="Create group" show_title="true">
<stringvalue id="group_name" label="Group name"/>
- <label/>
</optionalbox>
</source>
#ifdef _DEBUG
std::cout << "GetSharedFaces " << std::endl;
#endif
- int aLen = theShapes.size();
- if (aLen < 1) return NULL;
+ if (theShapes.empty()) return false;
TopAbs_ShapeEnum aShapeType = TopAbs_FACE;
#include <GeomAlgoAPI.h>
#include <GeomAPI_Shape.h>
-#include <Standard_TypeDef.hxx>
-
-/// get the boundin box of theshape.
+/// get the object shared faces
/// \param theShape the shape
/// \param theTolerance precise TRUE for precise computation; FALSE for fast one.
/// \param theFaces the faces shared