From: dbv Date: Wed, 7 Sep 2016 06:57:15 +0000 (+0300) Subject: Fix for naming in composite features X-Git-Tag: V_2.5.0~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=957c2da25ba0618b2b2a8f89bd75d4f961ee08a9;p=modules%2Fshaper.git Fix for naming in composite features --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp index fd16671cf..5fd04a114 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp @@ -267,28 +267,26 @@ void FeaturesPlugin_CompositeSketch::storeGenerationHistory(ResultBodyPtr theRes int& theTag) { GeomAPI_Shape::ShapeType aBaseShapeType = theBaseShape->shapeType(); - GeomAPI_Shape::ShapeType aShapeTypeToExplode; + GeomAPI_Shape::ShapeType aShapeTypeToExplode = GeomAPI_Shape::SHAPE; std::string aGenName = "Generated_"; std::shared_ptr aMapOfSubShapes = theMakeShape->mapOfSubShapes(); switch(aBaseShapeType) { - case GeomAPI_Shape::VERTEX: { - aShapeTypeToExplode = GeomAPI_Shape::VERTEX; - break; - } case GeomAPI_Shape::EDGE: case GeomAPI_Shape::WIRE: { - std::shared_ptr aV1, aV2; - GeomAlgoAPI_ShapeTools::findBounds(theBaseShape, aV1, aV2); - ListOfShape aV1History, aV2History; - theMakeShape->generated(aV1, aV1History); - theMakeShape->generated(aV2, aV2History); - if(!aV1History.empty()) { - theResultBody->generated(aV1, aV1History.front(), aGenName + "Edge_1", theTag++); - } - if(!aV2History.empty()) { - theResultBody->generated(aV2, aV2History.front(), aGenName + "Edge_2", theTag++); - } + //std::shared_ptr aV1, aV2; + //GeomAlgoAPI_ShapeTools::findBounds(theBaseShape, aV1, aV2); + //ListOfShape aV1History, aV2History; + //theMakeShape->generated(aV1, aV1History); + //theMakeShape->generated(aV2, aV2History); + //if(!aV1History.empty()) { + // theResultBody->generated(aV1, aV1History.front(), aGenName + "Edge_1", theTag++); + //} + //if(!aV2History.empty()) { + // theResultBody->generated(aV2, aV2History.front(), aGenName + "Edge_2", theTag++); + //} + aShapeTypeToExplode = GeomAPI_Shape::VERTEX; + break; } case GeomAPI_Shape::FACE: case GeomAPI_Shape::SHELL: {