From: vsv Date: Wed, 30 Jul 2014 13:40:42 +0000 (+0400) Subject: Create distance constraint on circles X-Git-Tag: V_0.4.4~125^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96fcfbbd52a543004e7c74a8ecb398d0d78bd72d;p=modules%2Fshaper.git Create distance constraint on circles --- diff --git a/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp b/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp index b46cf9096..0c499fff0 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp @@ -4,6 +4,7 @@ #include "SketchPlugin_ConstraintDistance.h" #include +#include #include #include @@ -109,6 +110,9 @@ boost::shared_ptr getFeaturePoint(DataPtr theData, if (aFeature && aFeature->getKind() == SketchPlugin_Point::ID()) aPointAttr = boost::dynamic_pointer_cast (aFeature->data()->attribute(SketchPlugin_Point::COORD_ID())); + else if (aFeature && aFeature->getKind() == SketchPlugin_Circle::ID()) + aPointAttr = boost::dynamic_pointer_cast + (aFeature->data()->attribute(SketchPlugin_Circle::CENTER_ID())); else { if (anAttr->attr()) aPointAttr = boost::dynamic_pointer_cast(anAttr->attr());