-//==================================================================================================
-void SketchAPI_Circle::setSecondPoint(double theX, double theY)
-{
- fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_THREE_POINTS(), mycircleType);
- fillAttribute(secondPoint(), theX, theY);
-
- execute();
-}
-
-//==================================================================================================
-void SketchAPI_Circle::setSecondPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
-{
- fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_THREE_POINTS(), mycircleType);
- fillAttribute(thePoint, mysecondPoint);
-
- execute();
-}
-
-//==================================================================================================
-void SketchAPI_Circle::setThirdPoint(double theX, double theY)
-{
- fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_THREE_POINTS(), mycircleType);
- fillAttribute(thirdPoint(), theX, theY);
-
- execute();
-}
-
-//==================================================================================================
-void SketchAPI_Circle::setThirdPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
-{
- fillAttribute(SketchPlugin_Circle::CIRCLE_TYPE_THREE_POINTS(), mycircleType);
- fillAttribute(thePoint, mythirdPoint);
-
- execute();
+ FeaturePtr aFeature = ModelAPI_Feature::feature(anRef->value());
+ if (aFeature && aFeature->getKind() == SketchPlugin_Point::ID())
+ {
+ anEnt = std::shared_ptr < SketchAPI_SketchEntity>(new SketchAPI_Point(aFeature));
+ }
+ return anEnt;