Salome HOME
Fix for the issue #2808 : Documentation on the "Groups" panel. Added description...
[modules/shaper.git] / src / BuildPlugin / BuildPlugin_Interpolation.cpp
index bc651c9d6df408b59e3ff68bff6bbff9c38f6266..481a51ff1fe3d039528d1cf1277645fc1a85ae57 100644 (file)
@@ -86,7 +86,7 @@ void BuildPlugin_Interpolation::execute()
   bool isToReorder = boolean(REORDER_ID())->value();
 
   // Get use tangents flag value
-  bool isToUseTangents = !string(USE_TANGENTS_ID())->value().empty();
+  bool isToUseTangents = isClosed? false : (!string(USE_TANGENTS_ID())->value().empty());
 
   // Get tangent for start and end points
   GeomDirPtr aDirStart, aDirEnd;
@@ -128,12 +128,12 @@ void BuildPlugin_Interpolation::execute()
   ResultBodyPtr aResultBody = document()->createBody(data());
   std::set<GeomShapePtr>::const_iterator aContextIt = aContexts.begin();
   for (; aContextIt != aContexts.end(); aContextIt++) {
-    aResultBody->storeModified(*aContextIt, anEdge, aContextIt == aContexts.begin() ? 0 : -2);
+    aResultBody->storeModified(*aContextIt, anEdge, aContextIt == aContexts.begin());
   }
   int aVertexIndex = 1;
   for (GeomAPI_ShapeExplorer anExp(anEdge, GeomAPI_Shape::VERTEX); anExp.more(); anExp.next()) {
     std::string aVertexName = "Vertex_" + std::to_string((long long)aVertexIndex);
-    aResultBody->generated(anExp.current(), aVertexName, aVertexIndex++);
+    aResultBody->generated(anExp.current(), aVertexName);
   }
 
   setResult(aResultBody);