]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The center of the circle should be shown only when the circle is shown also.
authornds <natalia.donis@opencascade.com>
Thu, 6 Nov 2014 07:56:34 +0000 (10:56 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 6 Nov 2014 07:56:34 +0000 (10:56 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index b2615a6bbc98d8b220215fa306b4f9f9d9f7f27d..26eabc918463f9ca053fe91da0e936e01e6a33bb 100644 (file)
@@ -100,9 +100,6 @@ AISObjectPtr SketchPlugin_Arc::getAISObject(AISObjectPtr thePrevious)
           GeomDataAPI_Point2D>(data()->attribute(SketchPlugin_Arc::CENTER_ID()));
       if (aCenterAttr->isInitialized()) {
         boost::shared_ptr<GeomAPI_Pnt> aCenter(aSketch->to3D(aCenterAttr->x(), aCenterAttr->y()));
-        // make a visible point
-        boost::shared_ptr<GeomAPI_Shape> aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter);
-        aShapes.push_back(aCenterPointShape);
 
         boost::shared_ptr<GeomDataAPI_Point2D> 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<GeomAPI_Shape> aCircleShape = GeomAlgoAPI_EdgeBuilder::lineCircleArc(
                                                             aCenter, aStartPoint, aStartPoint, aNormal);
             if (aCircleShape) {
+              // make a visible point
+              boost::shared_ptr<GeomAPI_Shape> aCenterPointShape = GeomAlgoAPI_PointBuilder::point(aCenter);
+              aShapes.push_back(aCenterPointShape);
+
               aShapes.push_back(aCircleShape);
             }
           }