]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed naming issue CEA_2020/Lot3_Loft
authorlucasjerome <jerome.lucas@cegsenslab.fr>
Thu, 11 Mar 2021 14:29:42 +0000 (15:29 +0100)
committerlucasjerome <jerome.lucas@cegsenslab.fr>
Thu, 11 Mar 2021 14:29:42 +0000 (15:29 +0100)
src/FeaturesPlugin/FeaturesPlugin_Loft.cpp

index 7694945349f2a61686379a1afcea848a172e9696..ed7e5a4f3b632f142c60d498f2e77f4f5d25e251 100644 (file)
@@ -105,11 +105,10 @@ void FeaturesPlugin_Loft::execute()
       ResultBodyPtr aResultBody = document()->createBody(data());
       aResultBody->store(aCreatedFace);
       // store edges
-      int anEdgeInd = 0;
       for(GeomAPI_ShapeExplorer anExp(aCreatedFace, GeomAPI_Shape::EDGE);
                                 anExp.more(); anExp.next()) {
         GeomShapePtr anEdge = anExp.current();
-        aResultBody->generated(anEdge, "Loft_Edge_" + std::to_string((long long)anEdgeInd));
+        aResultBody->generated(anEdge, "Loft_Edge");
       }
       setResult(aResultBody, 0);
 
@@ -131,18 +130,11 @@ void FeaturesPlugin_Loft::execute()
       ResultBodyPtr aResultBody = document()->createBody(data());
 
       aResultBody->store(aLoftAlgo->shape());
-      // store edges
-      int anEdgeInd = 0;
-      for(GeomAPI_ShapeExplorer anExp(aLoftAlgo->shape(), GeomAPI_Shape::EDGE);
-                                anExp.more(); anExp.next()) {
-        GeomShapePtr anEdge = anExp.current();
-        aResultBody->generated(anEdge, "Loft_Edge_" + std::to_string((long long)anEdgeInd));
-      }
-      int anFaceInd = 0;
+      // store Faces
       for(GeomAPI_ShapeExplorer anExp(aLoftAlgo->shape(), GeomAPI_Shape::FACE);
                                 anExp.more(); anExp.next()) {
         GeomShapePtr anEdge = anExp.current();
-        aResultBody->generated(anEdge, "Loft_Face_" + std::to_string((long long)anFaceInd));
+        aResultBody->generated(anEdge, "Loft_Face");
       }
       setResult(aResultBody, 0);
     }