X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchSolver%2FSketchSolver_ConstraintMirror.cpp;h=7f22fa947f3ca7b7203a6864ce2403f3038c7345;hb=c89cde85df4f88437eeae4f83248c75d066fba71;hp=4f2c69b866f193dc1cdb189a215e3f1ff9dbe863;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp index 4f2c69b86..7f22fa947 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMirror.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMirror.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include @@ -24,11 +23,14 @@ #include #include +#include +#include #include #include #include #include #include +#include static void mirrorPoints(const std::shared_ptr& theMirrorLine, @@ -193,6 +195,11 @@ void mirrorEntities(const std::shared_ptr& theMirrorLine, theMirrored->real(SketchPlugin_Circle::RADIUS_ID())->setValue( theOriginal->real(SketchPlugin_Circle::RADIUS_ID())->value()); } + else if (theOriginal->getKind() == SketchPlugin_EllipticArc::ID()) { + // orientation of arc + theMirrored->boolean(SketchPlugin_EllipticArc::REVERSED_ID())->setValue( + !theOriginal->boolean(SketchPlugin_EllipticArc::REVERSED_ID())->value()); + } // mirror all initialized points of features std::list::iterator anIt0, anIt1;