From 8a3b4b191015686eeadb52c6d8de1afc13b1c34f Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 6 Jun 2014 16:16:42 +0400 Subject: [PATCH] refs #80 - Sketch base GUI: create/draw point, circle and arc Circle final creation. --- src/PartSet/PartSet_Tools.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index 36dd3fd0c..5563c9882 100644 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -317,6 +318,13 @@ boost::shared_ptr PartSet_Tools::findPoint(FeaturePtr theFe if (fabs(aPoint->x() - theX) < Precision::Confusion() && fabs(aPoint->y() - theY) < Precision::Confusion() ) aPoint2D = aPoint; } + else if (theFeature->getKind() == SKETCH_CIRCLE_KIND) + { + boost::shared_ptr aPoint = + boost::dynamic_pointer_cast(aData->attribute(CIRCLE_ATTR_CENTER)); + if (fabs(aPoint->x() - theX) < Precision::Confusion() && fabs(aPoint->y() - theY) < Precision::Confusion() ) + aPoint2D = aPoint; + } return aPoint2D; } -- 2.39.2