- // Adjust the sign of constraint value
- BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder();
- aBuilder->adjustConstraint(aConstraint);
- myStorage->addConstraint(myBaseConstraint, aConstraint);
+//// // Adjust the sign of constraint value
+//// BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder();
+////
+//// std::shared_ptr<GeomAPI_Lin2d> aLine;
+//// std::shared_ptr<GeomAPI_Pnt2d> aPoint;
+//// for (int i = 0; i < 2; ++i) {
+//// AttributePtr anAttr = myBaseConstraint->attribute(SketchPlugin_Constraint::ATTRIBUTE(i));
+//// EntityWrapperPtr anEntity = myStorage->entity(anAttr);
+//// if (anEntity->type() == ENTITY_POINT)
+//// aPoint = aBuilder->point(anEntity);
+//// else if (anEntity->type() == ENTITY_LINE)
+//// aLine = aBuilder->line(anEntity);
+//// }
+////
+//// std::shared_ptr<GeomAPI_XY> aLineVec = aLine->direction()->xy();
+//// std::shared_ptr<GeomAPI_XY> aPtLineVec = aPoint->xy()->decreased(aLine->location()->xy());
+//// if (aLineVec->cross(aPtLineVec) * aConstraint->value() < 0.0)
+//// aConstraint->setValue(aConstraint->value() * (-1.0));