X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Point.cpp;h=cf718db760dd812324db95cf16a10a297494b29b;hb=64fc7e4fdd63997ec7a502b233ef5f88186d5bbb;hp=d831982c1465bbcf4b20c395e617c07b566f39e2;hpb=703412eb48fcfc53a500ed637e02739d31f991c4;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Point.cpp b/src/SketchPlugin/SketchPlugin_Point.cpp index d831982c1..cf718db76 100644 --- a/src/SketchPlugin/SketchPlugin_Point.cpp +++ b/src/SketchPlugin/SketchPlugin_Point.cpp @@ -63,15 +63,6 @@ void SketchPlugin_Point::move(double theDeltaX, double theDeltaY) aPoint1->move(theDeltaX, theDeltaY); } -double SketchPlugin_Point::distanceToPoint(const std::shared_ptr& thePoint) -{ - std::shared_ptr aData = data(); - std::shared_ptr aPoint = std::dynamic_pointer_cast( - aData->attribute(SketchPlugin_Point::COORD_ID())); - - return aPoint->pnt()->distance(thePoint); -} - bool SketchPlugin_Point::isFixed() { return data()->selection(EXTERNAL_ID())->context().get() != NULL; }