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;
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);