From: dbv Date: Fri, 8 Dec 2017 07:36:47 +0000 (+0300) Subject: Issue #2319: AttributeError: 'NoneType' object has no attribute 'isVertex' in model... X-Git-Tag: V_2.10.0RC~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=102e0f23fd4c7efaf87a0cc4fdf9eb7ec7923589;p=modules%2Fshaper.git Issue #2319: AttributeError: 'NoneType' object has no attribute 'isVertex' in model.testHaveNamingVertices Some improvements in naming. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Union.cpp b/src/FeaturesPlugin/FeaturesPlugin_Union.cpp index 66bef610c..8b1a811a2 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Union.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Union.cpp @@ -173,16 +173,19 @@ void FeaturesPlugin_Union::execute() const int aDeletedTag = 3; /// sub solids will be placed at labels 4, 5 etc. if result is compound of solids const int aSubsolidsTag = 4; - const std::string aModName = "Modified"; + const std::string aModEName = "Modified_Edge"; + const std::string aModFName = "Modified_Face"; std::shared_ptr aResultBody = document()->createBody(data()); aResultBody->storeModified(anObjects.front(), aShape, aSubsolidsTag); for(ListOfShape::const_iterator anIter = anObjects.begin(); anIter != anObjects.end(); ++anIter) { aResultBody->loadAndOrientModifiedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::EDGE, - aModifyEdgeTag, aModName, aMapOfShapes); + aModifyEdgeTag, aModEName, aMapOfShapes, + false, false, true); aResultBody->loadAndOrientModifiedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::FACE, - aModifyFaceTag, aModName, aMapOfShapes); + aModifyFaceTag, aModFName, aMapOfShapes, + false, false, true); aResultBody->loadDeletedShapes(&aMakeShapeList, *anIter, GeomAPI_Shape::FACE, aDeletedTag); }