1 #include <SketchSolver_ConstraintAngle.h>
2 #include <SketchSolver_Manager.h>
4 #include <GeomAPI_Dir2d.h>
5 #include <GeomAPI_Lin2d.h>
6 #include <GeomAPI_Pnt2d.h>
7 #include <GeomAPI_XY.h>
11 void SketchSolver_ConstraintAngle::getAttributes(
12 double& theValue, std::vector<EntityWrapperPtr>& theAttributes)
14 SketchSolver_Constraint::getAttributes(theValue, theAttributes);
20 void SketchSolver_ConstraintAngle::adjustConstraint()
22 static const double aTol = 1000. * tolerance;
23 BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder();
25 ConstraintWrapperPtr aConstraint = myStorage->constraint(myBaseConstraint).front();
26 //if (fabs(myAngle - aConstraint->value()) < aTol)
28 myAngle = aConstraint->value();
29 aBuilder->adjustConstraint(aConstraint);
30 myStorage->addConstraint(myBaseConstraint, aConstraint);