Salome HOME
Add fillAttribute(double...) and fillAttribute(const char*,) and use it in SketchAPI_...
[modules/shaper.git] / src / SketchAPI / SketchAPI_Circle.cpp
index e05e767082e6a8dd360acb1438e296e651964f17..d8a07f13b787bcf4e9948b1b901221b2e00558ab 100644 (file)
@@ -97,7 +97,7 @@ void SketchAPI_Circle::setByCenterAndRadius(double theCenterX, double theCenterY
 {
   fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_CENTER_AND_RADIUS(), mycircleType);
   fillAttribute(center(), theCenterX, theCenterY);
-  fillAttribute(ModelHighAPI_Double(theRadius), myradius);
+  fillAttribute(theRadius, myradius);
 
   execute();
 }
@@ -108,7 +108,7 @@ void SketchAPI_Circle::setByCenterAndRadius(const std::shared_ptr<GeomAPI_Pnt2d>
 {
   fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_CENTER_AND_RADIUS(), mycircleType);
   fillAttribute(theCenter, mycenter);
-  fillAttribute(ModelHighAPI_Double(theRadius), myradius);
+  fillAttribute(theRadius, myradius);
 
   execute();
 }