]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #432: Don't show a fillet arc until the fillet is fully computed
authorazv <azv@opencascade.com>
Fri, 3 Apr 2015 14:42:34 +0000 (17:42 +0300)
committerazv <azv@opencascade.com>
Fri, 3 Apr 2015 14:42:34 +0000 (17:42 +0300)
src/SketchPlugin/SketchPlugin_ConstraintFillet.cpp

index 41bb3738839cb011145d41171ad7766ac218e5a2..7d8e142bc50f6acdba6ba42ad85eee6feff188ce 100644 (file)
@@ -214,10 +214,10 @@ void SketchPlugin_ConstraintFillet::execute()
       aCenter->x(), aCenter->y());
   std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
       aNewArc->attribute(SketchPlugin_Arc::START_ID()))->setValue(
-      aCenter->x() - aStep->y(), aCenter->y() + aStep->x());
+      aSharedPoint->x() - 1.e-5 * aStep->y(), aSharedPoint->y() + 1.e-5 * aStep->x());
   std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
       aNewArc->attribute(SketchPlugin_Arc::END_ID()))->setValue(
-      aCenter->x() + aStep->y(), aCenter->y() - aStep->x());
+      aSharedPoint->x() + 1.e-5 * aStep->y(), aSharedPoint->y() - 1.e-5 * aStep->x());
   aNewArc->execute();
   // attach new arc to the list
   aRefListOfFillet->append(aNewArc->lastResult());