From 3a5afc79fc52a9ab688f830ab0d173e492b0ec7e Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 7 Sep 2016 15:48:42 +0300 Subject: [PATCH] Issue #1739: Naming on faces not correct Fixed --- src/BuildPlugin/BuildPlugin_Shell.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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; } } } -- 2.39.2