]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
FIX : Variable rename + test KO nrn/Lot2/DuplicatedFaces
authorNicolas Rechatin <nicolas.rechatin@cea.fr>
Wed, 23 Mar 2022 15:05:36 +0000 (16:05 +0100)
committerNicolas Rechatin <nicolas.rechatin@cea.fr>
Wed, 23 Mar 2022 15:05:36 +0000 (16:05 +0100)
src/FeaturesAPI/FeaturesAPI_DuplicatedFaces.cpp
src/FeaturesPlugin/FeaturesPlugin_CommonDuplicatedFaces.cpp
src/FeaturesPlugin/FeaturesPlugin_DuplicatedFaces.cpp
src/FeaturesPlugin/FeaturesPlugin_GroupDuplicatedFaces.cpp

index 0aa69855a11623f1d8b2227d736fed4f1c15ff81..5171854ce84488e5fdaeb3b81cb784aff14bba10 100644 (file)
 
 #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>
 
index bc66326c75bc359d1ba9103325b0d25d756e4f7e..7e0914d4fa3f6559c59120ee536330751ba8e144 100644 (file)
@@ -54,14 +54,14 @@ void explode(const GeomShapePtr& theCompound, ListOfShape& theSubs)
 //=================================================================================================
 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>
@@ -73,13 +73,13 @@ void FeaturesPlugin_CommonDuplicatedFaces::updateFaces()
     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;
@@ -103,7 +103,7 @@ void FeaturesPlugin_CommonDuplicatedFaces::updateFaces()
         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();
index badca1158dba27cdf74defc1e201b675d674597c..ff959c81416968701f92354f3363464620140a85 100644 (file)
@@ -131,8 +131,8 @@ void FeaturesPlugin_DuplicatedFaces::execute()
   }
 
   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);
index 4b0e1e351254aaa487648233bc7510a4c8c13860..ef9d82c5f60e8dcd50d9d89d75f1c8d084817390 100644 (file)
@@ -117,8 +117,8 @@ void FeaturesPlugin_GroupDuplicatedFaces::execute()
 
   }
   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;