From: dbv Date: Wed, 7 Sep 2016 12:48:42 +0000 (+0300) Subject: Issue #1739: Naming on faces not correct X-Git-Tag: V_2.5.0~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a5afc79fc52a9ab688f830ab0d173e492b0ec7e;p=modules%2Fshaper.git Issue #1739: Naming on faces not correct Fixed --- diff --git a/src/BuildPlugin/BuildPlugin_Shell.cpp b/src/BuildPlugin/BuildPlugin_Shell.cpp index bb934a25d..3575c48b5 100644 --- a/src/BuildPlugin/BuildPlugin_Shell.cpp +++ b/src/BuildPlugin/BuildPlugin_Shell.cpp @@ -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; } } }