From: mpv Date: Fri, 29 Jun 2018 14:15:11 +0000 (+0300) Subject: Coding rules satisfaction X-Git-Tag: V8_5_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac124b6ce093b781b377b275a64418416b2684e3;p=modules%2Fshaper.git Coding rules satisfaction --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp index 6aab541cd..77766fcb5 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp @@ -438,7 +438,7 @@ void FeaturesPlugin_CompositeSketch::storeGenerationHistory(ResultBodyPtr theRes std::ostringstream aStream; aStream<<"Base_Edge_"<generated(aNotClosedEdge, aStream.str(), theTag++); - if (aDegenerateEdge.get()) { // export vertex of the degenerated edge, apex, issue 2520 + if (aDegenerateEdge.get()) { // export vertex of the degenerated edge (apex) #2520 GeomAPI_ShapeExplorer anEdgeExp(aDegenerateEdge, GeomAPI_Shape::VERTEX); if (anEdgeExp.more()) { std::ostringstream aStream; diff --git a/src/Model/Model_BodyBuilder.cpp b/src/Model/Model_BodyBuilder.cpp index df9380e33..1a8ea5507 100755 --- a/src/Model/Model_BodyBuilder.cpp +++ b/src/Model/Model_BodyBuilder.cpp @@ -385,7 +385,8 @@ static void keepTopLevelShapes(ListOfShape& theShapes, const TopoDS_Shape& theRo ListOfShape::iterator anIt = theShapes.begin(); while (anIt != theShapes.end()) { TopoDS_Shape aNewShape = (*anIt)->impl(); - bool aSkip = aNewShape.IsNull() || (aNewShape.ShapeType() == TopAbs_EDGE && BRep_Tool::Degenerated(TopoDS::Edge(aNewShape))); + bool aSkip = aNewShape.IsNull() || + (aNewShape.ShapeType() == TopAbs_EDGE && BRep_Tool::Degenerated(TopoDS::Edge(aNewShape))); if (aSkip || theRoot.IsSame(aNewShape) || (theResultShape && (!theResultShape->isSubShape(*anIt, false) || theResultShape->isSame(*anIt)))) { ListOfShape::iterator aRemoveIt = anIt++;