]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1741: Names on edges is not correct
authordbv <dbv@opencascade.com>
Wed, 7 Sep 2016 14:12:35 +0000 (17:12 +0300)
committerdbv <dbv@opencascade.com>
Wed, 7 Sep 2016 14:12:48 +0000 (17:12 +0300)
Edges of result face of BuildPlugin_Face feature now stored on separate tags for proper naming.

src/BuildPlugin/BuildPlugin_Face.cpp

index fddd223f053a505c2d48cb5b063e7b2a70dbb38f..a9c40af9e17d454db40e6ecb1be2299a2eef5e85 100644 (file)
@@ -85,12 +85,15 @@ void BuildPlugin_Face::execute()
     GeomShapePtr aShape = *anIt;
     aResultBody->store(aShape);
 
+    int anEdgeIndex = 1;
+
     for(GeomAPI_ShapeExplorer anExp(aShape, GeomAPI_Shape::EDGE); anExp.more(); anExp.next()) {
       GeomShapePtr anEdgeInResult = anExp.current();
       for(ListOfShape::const_iterator anIt = anEdges.cbegin(); anIt != anEdges.cend(); ++anIt) {
         std::shared_ptr<GeomAPI_Edge> anEdgeInList(new GeomAPI_Edge(*anIt));
         if(anEdgeInList->isEqual(anEdgeInResult)) {
-          aResultBody->modified(anEdgeInList, anEdgeInResult, "Edge");
+          aResultBody->modified(anEdgeInList, anEdgeInResult, "Edge_" + std::to_string((long long)anEdgeIndex), anEdgeIndex);
+          ++anEdgeIndex;
           break;
         }
       }