From: lucasjerome Date: Thu, 11 Mar 2021 14:29:42 +0000 (+0100) Subject: Fixed naming issue X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fe3972b71bcf5146c9608db8f62187be290cd92;p=modules%2Fshaper.git Fixed naming issue --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Loft.cpp b/src/FeaturesPlugin/FeaturesPlugin_Loft.cpp index 769494534..ed7e5a4f3 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Loft.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Loft.cpp @@ -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); }