Salome HOME
Sort constraints before adding it to the solver (issue #911)
[modules/shaper.git] / src / SketchSolver / SketchSolver_Constraint.h
index 6e048ccaf839b2cf053a293000ab834583a33e9a..8589dc19bb7d5b3d2e23e48a71950db084f71e5b 100644 (file)
@@ -51,7 +51,7 @@ public:
   /// \brief Returns the type of constraint
   virtual int getType() const = 0;
 
-  /// \brief The constraint is made temoparary
+  /// \brief The constraint is made temporary
   void makeTemporary() const;
 
   /// \brief Checks the constraint is used by current object
@@ -87,7 +87,7 @@ protected:
   /// \return \c true if some attributes are changed
   virtual bool checkAttributesChanged(ConstraintPtr theConstraint);
 
-  /// \brief This method is used in derived objects to check consistence of constraint.
+  /// \brief This method is used in derived objects to check consistency of constraint.
   ///        E.g. the distance between line and point may be signed.
   virtual void adjustConstraint()
   {}
@@ -223,27 +223,4 @@ public:
   }
 };
 
-
-/** \class   SketchSolver_ConstraintAngle
- *  \ingroup Plugins
- *  \brief   Convert Agnle constraint to SolveSpace structure
- */
-class SketchSolver_ConstraintAngle : public SketchSolver_Constraint
-{
-public:
-  SketchSolver_ConstraintAngle(ConstraintPtr theConstraint) :
-      SketchSolver_Constraint(theConstraint)
-  {}
-
-  virtual int getType() const
-  { return SLVS_C_ANGLE; }
-
-  virtual void adjustConstraint()
-  {
-    Slvs_Constraint aConstraint = myStorage->getConstraint(mySlvsConstraints.front());
-    aConstraint.other = aConstraint.valA >= 0.0;
-    myStorage->updateConstraint(aConstraint);
-  }
-};
-
 #endif