From 3b393fbf006334c4c250502e90254fa781f52b1e Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 28 Dec 2015 12:44:24 +0300 Subject: [PATCH] Store the rotated values also into the GCS solver. Partial fix for the issue #1184 --- src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_Builder.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.39.2