From: nds Date: Fri, 6 Jun 2014 12:16:42 +0000 (+0400) Subject: refs #80 - Sketch base GUI: create/draw point, circle and arc X-Git-Tag: V_0.4.4~309 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a3b4b191015686eeadb52c6d8de1afc13b1c34f;p=modules%2Fshaper.git refs #80 - Sketch base GUI: create/draw point, circle and arc Circle final creation. --- 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; }