From: nds Date: Thu, 6 Nov 2014 07:56:34 +0000 (+0300) Subject: The center of the circle should be shown only when the circle is shown also. X-Git-Tag: V_0.5~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aac6e10fe87e3a64915bb6ef92c6a9f40f2a51bc;p=modules%2Fshaper.git The center of the circle should be shown only when the circle is shown also. --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index b2615a6bb..26eabc918 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -100,9 +100,6 @@ AISObjectPtr SketchPlugin_Arc::getAISObject(AISObjectPtr thePrevious) GeomDataAPI_Point2D>(data()->attribute(SketchPlugin_Arc::CENTER_ID())); if (aCenterAttr->isInitialized()) { boost::shared_ptr aCenter(aSketch->to3D(aCenterAttr->x(), aCenterAttr->y())); - // make a visible point - boost::shared_ptr aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter); - aShapes.push_back(aCenterPointShape); boost::shared_ptr aStartAttr = boost::dynamic_pointer_cast< GeomDataAPI_Point2D>(data()->attribute(SketchPlugin_Arc::START_ID())); @@ -117,6 +114,10 @@ AISObjectPtr SketchPlugin_Arc::getAISObject(AISObjectPtr thePrevious) boost::shared_ptr aCircleShape = GeomAlgoAPI_EdgeBuilder::lineCircleArc( aCenter, aStartPoint, aStartPoint, aNormal); if (aCircleShape) { + // make a visible point + boost::shared_ptr aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter); + aShapes.push_back(aCenterPointShape); + aShapes.push_back(aCircleShape); } }