myCenterCoord[0] = aParams.front()->value();
myCenterCoord[1] = aParams.back()->value();
- myRotationVal[0] = sin(myAngle * PI / 180.0);
- myRotationVal[1] = cos(myAngle * PI / 180.0);
+ double anAngleValue = myAngle;
+ if (myIsFullValue && myNumberOfCopies > 0)
+ anAngleValue /= myNumberOfCopies;
+
+ myRotationVal[0] = sin(anAngleValue * PI / 180.0);
+ myRotationVal[1] = cos(anAngleValue * PI / 180.0);
SketchSolver_ConstraintMulti::adjustConstraint();
}
EntityWrapperPtr aEnd = myStorage->entity(
myBaseConstraint->attribute(SketchPlugin_MultiTranslation::END_POINT_ID()));
std::list<ParameterWrapperPtr> aEndParams = aEnd->parameters();
+
myDelta[0] = aEndParams.front()->value() - aStartParams.front()->value();
myDelta[1] = aEndParams.back()->value() - aStartParams.back()->value();
+ if (myIsFullValue && myNumberOfCopies > 0) {
+ myDelta[0] /= myNumberOfCopies;
+ myDelta[1] /= myNumberOfCopies;
+ }
+
SketchSolver_ConstraintMulti::adjustConstraint();
}