]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1739: Naming on faces not correct
authordbv <dbv@opencascade.com>
Wed, 7 Sep 2016 12:48:42 +0000 (15:48 +0300)
committerdbv <dbv@opencascade.com>
Wed, 7 Sep 2016 12:48:58 +0000 (15:48 +0300)
Fixed

src/BuildPlugin/BuildPlugin_Shell.cpp

index bb934a25d19813209e805d4df6c336132a9cb339..3575c48b50525b0bc74866851d5bf44312065c72 100644 (file)
@@ -79,9 +79,16 @@ void BuildPlugin_Shell::execute()
         for(ListOfShape::const_iterator aHistoryIt = aHistory.cbegin();
             aHistoryIt != aHistory.cend();
             ++aHistoryIt) {
-          if(aShell->isSubShape(*aHistoryIt)) {
+          GeomShapePtr aHistoryShape = *aHistoryIt;
+          if(aMapOfShapes->isBound(aHistoryShape)) {
+            aHistoryShape = aMapOfShapes->find(aHistoryShape);
+          }
+          if(aShell->isSubShape(aHistoryShape)) {
             aResultBody->loadAndOrientModifiedShapes(&aSewingAlgo, aFace, GeomAPI_Shape::EDGE,
-                                                     1, "Modified", *aMapOfShapes.get());
+                                                     1, "Modified_Edge", *aMapOfShapes.get());
+            aResultBody->loadAndOrientModifiedShapes(&aSewingAlgo, aFace, GeomAPI_Shape::FACE,
+                                                     2, "Modified_Face", *aMapOfShapes.get());
+            break;
           }
         }
       }