]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Initialize necessary attributes of external arc (issue #1580)
authorazv <azv@opencascade.com>
Wed, 22 Jun 2016 06:13:10 +0000 (09:13 +0300)
committerazv <azv@opencascade.com>
Wed, 22 Jun 2016 06:14:26 +0000 (09:14 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index a787a5d658c88770b9006a88bafcd0812b406f32..9825ce9c2be65542bdee5ac4087b826d58b170e6 100644 (file)
@@ -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;