From: mpv Date: Mon, 28 Dec 2015 09:44:24 +0000 (+0300) Subject: Store the rotated values also into the GCS solver. Partial fix for the issue #1184 X-Git-Tag: V_2.1.0~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3b393fbf006334c4c250502e90254fa781f52b1e;p=modules%2Fshaper.git Store the rotated values also into the GCS solver. Partial fix for the issue #1184 --- diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Builder.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Builder.cpp index 1045b5ecc..fccec67af 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Builder.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Builder.cpp @@ -1155,6 +1155,11 @@ static void rotate(EntityWrapperPtr theSource, EntityWrapperPtr theDest, double aNewX = aVec->x() * theCos - aVec->y() * theSin; double aNewY = aVec->x() * theSin + aVec->y() * theCos; aDstAttr->setValue(theCenter->x() + aNewX, theCenter->y() + aNewY); + // set also parameters of the solver + double aCoord[2] = {aDstAttr->x(), aDstAttr->y()}; + std::list::const_iterator aDIt = theDest->parameters().begin(); + for (int i = 0; aDIt != theDest->parameters().end(); ++aDIt, ++i) + (*aDIt)->setValue(aCoord[i]); } return; }