From: dbv Date: Wed, 7 Sep 2016 14:12:35 +0000 (+0300) Subject: Issue #1741: Names on edges is not correct X-Git-Tag: V_2.5.0~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e552adb9a5f70d4d112107cdb6a0551048b765f1;p=modules%2Fshaper.git Issue #1741: Names on edges is not correct Edges of result face of BuildPlugin_Face feature now stored on separate tags for proper naming. --- diff --git a/src/BuildPlugin/BuildPlugin_Face.cpp b/src/BuildPlugin/BuildPlugin_Face.cpp index fddd223f0..a9c40af9e 100644 --- a/src/BuildPlugin/BuildPlugin_Face.cpp +++ b/src/BuildPlugin/BuildPlugin_Face.cpp @@ -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 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; } }