]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Coding rules satisfaction
authormpv <mikhail.ponikarov@opencascade.com>
Fri, 29 Jun 2018 14:15:11 +0000 (17:15 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Fri, 29 Jun 2018 14:15:11 +0000 (17:15 +0300)
src/FeaturesPlugin/FeaturesPlugin_CompositeSketch.cpp
src/Model/Model_BodyBuilder.cpp

index 6aab541cd97ef84e4d68fd448f60a8a983a19876..77766fcb58be2cd4dacf071a65bca81d18ae6104 100644 (file)
@@ -438,7 +438,7 @@ void FeaturesPlugin_CompositeSketch::storeGenerationHistory(ResultBodyPtr theRes
               std::ostringstream aStream;
               aStream<<"Base_Edge_"<<theTag++;
               theResultBody->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;
index df9380e33e3779e6903b14da10a2cd72634156ce..1a8ea5507f9518ca3810ac4bb6ba615e21bbfe6d 100755 (executable)
@@ -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<TopoDS_Shape>();
-    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++;