From e552adb9a5f70d4d112107cdb6a0551048b765f1 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 7 Sep 2016 17:12:35 +0300 Subject: [PATCH] Issue #1741: Names on edges is not correct Edges of result face of BuildPlugin_Face feature now stored on separate tags for proper naming. --- src/BuildPlugin/BuildPlugin_Face.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.39.2