]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1834: Fix length of lines
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 18 Nov 2016 09:54:29 +0000 (12:54 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 18 Nov 2016 10:01:30 +0000 (13:01 +0300)
src/FeaturesPlugin/FeaturesPlugin_Placement.cpp
src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp
src/FeaturesPlugin/FeaturesPlugin_Translation.cpp
src/Model/Model_SelectionNaming.cpp

index c3351408566f81b7fd5b9c4d79acbf1db8854656..0ffb26ed7a9f3777f2a2ec7266c6e36c498cd83e 100644 (file)
@@ -197,5 +197,7 @@ void FeaturesPlugin_Placement::loadNamingDS(GeomAlgoAPI_Transform& theTransformA
   std::string aPlacedName = "Placed";
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theTransformAlgo.mapOfSubShapes();
 
-  FeaturesPlugin_Tools::storeModifiedShapes(theTransformAlgo, theResultBody, theBaseShape, aPlacedTag, aPlacedName, *aSubShapes.get());
+  FeaturesPlugin_Tools::storeModifiedShapes(theTransformAlgo, theResultBody, 
+                                            theBaseShape, aPlacedTag, aPlacedName, 
+                                            *aSubShapes.get());
 }
index ac2c10ca0e03316d29b9af2259e80bcaeb973899..614264603a7f9eb0defbe0a3b4c3f839d090213d 100755 (executable)
@@ -132,5 +132,7 @@ void FeaturesPlugin_Rotation::loadNamingDS(GeomAlgoAPI_Rotation& theRotaionAlgo,
   std::string aRotatedName = "Rotated";
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theRotaionAlgo.mapOfSubShapes();
 
-  FeaturesPlugin_Tools::storeModifiedShapes(theRotaionAlgo, theResultBody, theBaseShape, aRotatedTag, aRotatedName, *aSubShapes.get());
+  FeaturesPlugin_Tools::storeModifiedShapes(theRotaionAlgo, theResultBody, 
+                                            theBaseShape, aRotatedTag, aRotatedName, 
+                                            *aSubShapes.get());
 }
index dea6df9f4f237835a150bbdba88e6a3719b51d44..e9e337f18bb93393e8eef9c93768af5e6194c764 100644 (file)
@@ -136,5 +136,7 @@ void FeaturesPlugin_Translation::loadNamingDS(GeomAlgoAPI_Translation& theTransl
   std::string aTranslatedName = "Translated";
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theTranslationAlgo.mapOfSubShapes();
 
-  FeaturesPlugin_Tools::storeModifiedShapes(theTranslationAlgo, theResultBody, theBaseShape, aTranslatedTag, aTranslatedName, *aSubShapes.get());
+  FeaturesPlugin_Tools::storeModifiedShapes(theTranslationAlgo, theResultBody, 
+                                            theBaseShape, aTranslatedTag, aTranslatedName,
+                                            *aSubShapes.get());
 }
index bc88078c686a08dcc2ef7fce8ed6d588859b2755..47b530460a584018355ca25f5ef3d370cde66884 100644 (file)
@@ -74,7 +74,8 @@ std::string Model_SelectionNaming::getShapeName(
           static const std::string aPostFix("_");
           TNaming_Iterator anItL(aNS);
           for(int i = 1; anItL.More(); anItL.Next(), i++) {
-            if(anItL.NewShape().IsSame(theShape)) { // in #1766 IsEqual produced no index of the face
+            // in #1766 IsEqual produced no index of the face
+            if(anItL.NewShape().IsSame(theShape)) { 
               aName += aPostFix;
               aName += TCollection_AsciiString (i).ToCString();
               break;