From 6fe3972b71bcf5146c9608db8f62187be290cd92 Mon Sep 17 00:00:00 2001 From: lucasjerome Date: Thu, 11 Mar 2021 15:29:42 +0100 Subject: [PATCH] Fixed naming issue --- src/FeaturesPlugin/FeaturesPlugin_Loft.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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); } -- 2.39.2