#include <FeaturesPlugin_GroupDuplicatedFaces.h>
-#include <ModelHighAPI_Services.h>
-#include <ModelHighAPI_Tools.h>
-
#include <ModelHighAPI_Dumper.h>
+#include <ModelHighAPI_Services.h>
#include <ModelHighAPI_Selection.h>
#include <ModelHighAPI_Tools.h>
//=================================================================================================
void FeaturesPlugin_CommonDuplicatedFaces::updateFaces()
{
- AttributeSelectionPtr ancompSolidAttr =
+ AttributeSelectionPtr aCompSolidAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(attributObject());
AttributeSelectionListPtr aFacesListAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>
(attributListFaces());
- GeomShapePtr aShape = ancompSolidAttr->value();
+ GeomShapePtr aShape = aCompSolidAttr->value();
AttributeDoublePtr aToleranceAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeDouble>
myShape = aShape;
anIsCompute->setValue(true);
}
- if (aShape.get() && ancompSolidAttr->context().get()
+ if (aShape.get() && aCompSolidAttr->context().get()
&& aToleranceAttr.get() && !aShape->isEqual(myShape)) {
if (aFacesListAttr->isInitialized())
aFacesListAttr->clear();
- aShape = ancompSolidAttr->context()->shape();
+ aShape = aCompSolidAttr->context()->shape();
if (aShape) {
std::string anError;
ListOfShape aFaces;
if (!aFacePtr.get()) {
setError("GetDuplicatedFaces : An invalid face found " + anError);
}
- aFacesListAttr->append(ancompSolidAttr->context(), aFacePtr);
+ aFacesListAttr->append(aCompSolidAttr->context(), aFacePtr);
}
std::stringstream alabel;
alabel << aFacesListAttr->size();
}
if (selection(OBJECT_ID())->isInitialized()) {
- AttributeSelectionPtr ancompSolidAttr = selection(OBJECT_ID());
- ResultPtr aResult = ancompSolidAttr->context();
+ AttributeSelectionPtr aCompSolidAttr = selection(OBJECT_ID());
+ ResultPtr aResult = aCompSolidAttr->context();
double aTranparency = integer(TRANSPARENCY_ID())->value()/100.0;
ModelAPI_Tools::setTransparency(aResult, aTranparency);
}
if (selection(OBJECT_ID())->isInitialized()) {
- AttributeSelectionPtr ancompSolidAttr = selection(OBJECT_ID());
- ResultPtr aResult = ancompSolidAttr->context();
+ AttributeSelectionPtr aCompSolidAttr = selection(OBJECT_ID());
+ ResultPtr aResult = aCompSolidAttr->context();
if(integer(TRANSPARENCY_ID())->isInitialized()){
double aTranparency = integer(TRANSPARENCY_ID())->value()/100.0;