From: azv Date: Wed, 22 Jun 2016 06:13:10 +0000 (+0300) Subject: Initialize necessary attributes of external arc (issue #1580) X-Git-Tag: V_2.4.0~76 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0852116f20f2e9a48124102209eafbde3df7d046;p=modules%2Fshaper.git Initialize necessary attributes of external arc (issue #1580) --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index a787a5d65..9825ce9c2 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -334,6 +334,11 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) aStartAttr->setValue(sketch()->to2D(anEdge->firstPoint())); anEndAttr->setValue(sketch()->to2D(anEdge->lastPoint())); aCenterAttr->setValue(sketch()->to2D(aCirc->center())); + + data()->real(RADIUS_ID())->setValue(aCirc->radius()); + double aStartAngle, aEndAngle; + anEdge->getRange(aStartAngle, aEndAngle); + data()->real(ANGLE_ID())->setValue(aEndAngle - aStartAngle); } } return;