From: dbv Date: Tue, 23 Aug 2016 08:53:07 +0000 (+0300) Subject: Issue #1678: Naming not correct in the feature "Partition" X-Git-Tag: V_2.5.0~138 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=197d2be534198a615d10ed00778ab9f01afb13a2;p=modules%2Fshaper.git Issue #1678: Naming not correct in the feature "Partition" Fixed naming for FeaturesPlugin_Partition --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp index 1fed0c7d8..4e84bef15 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Partition.cpp @@ -160,15 +160,16 @@ void FeaturesPlugin_Partition::storeResult(const ListOfShape& theObjects, std::shared_ptr aMapOfSubShapes = theMakeShape->mapOfSubShapes(); int anIndex = 1; for(ListOfShape::const_iterator anIt = theObjects.cbegin(); anIt != theObjects.cend(); ++anIt) { - std::ostringstream aStream; - aStream << aModName << "_" << anIndex++; + std::string aModEdgeName = aModName + "_Edge_" + std::to_string((long long)anIndex); + std::string aModFaceName = aModName + "_Face_" + std::to_string((long long)anIndex++); aResultBody->loadAndOrientModifiedShapes(theMakeShape.get(), *anIt, GeomAPI_Shape::EDGE, - aModTag, aStream.str(), *aMapOfSubShapes.get(), true); + aModTag, aModEdgeName, *aMapOfSubShapes.get(), true); + aModTag += 1000; aResultBody->loadAndOrientModifiedShapes(theMakeShape.get(), *anIt, GeomAPI_Shape::FACE, - aModTag, aStream.str(), *aMapOfSubShapes.get(), true); + aModTag, aModFaceName, *aMapOfSubShapes.get(), true); + aModTag += 1000; aResultBody->loadDeletedShapes(theMakeShape.get(), *anIt, GeomAPI_Shape::EDGE, aDelTag); aResultBody->loadDeletedShapes(theMakeShape.get(), *anIt, GeomAPI_Shape::FACE, aDelTag); - aModTag += 10000; } setResult(aResultBody, theIndex);