]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2024: Redesign of circle and arc of circle
authordbv <dbv@opencascade.com>
Wed, 29 Mar 2017 09:01:10 +0000 (12:01 +0300)
committerdbv <dbv@opencascade.com>
Wed, 29 Mar 2017 09:01:23 +0000 (12:01 +0300)
Fixed arc orientation when creating by 3 point

src/SketchPlugin/SketchPlugin_MacroArc.cpp

index de876dc966b433630f81fa2bd1f576587de39421..cd199d936b612c853c93aad8ad4d686bfe7cdbe5 100644 (file)
@@ -366,6 +366,7 @@ void SketchPlugin_MacroArc::fillByThreePassedPoints()
     std::shared_ptr<GeomAPI_Ax3> anAxis = SketchPlugin_Sketch::plane(sketch());
     GeomAPI_Circ2d aCircle(myStart, myEnd, aPassed, anAxis);
     myCenter = aCircle.center();
+    aCircle = GeomAPI_Circ2d(myCenter, myStart);
 
     recalculateReversedFlagByPassed(aCircle);
   } else