X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Solver.h;h=8a4f9964e95a7795389fc3563c538b99a22c91d2;hb=329d73a7dbce38e38063ff41186be492e3529ab5;hp=944a58e69354102e1d694b7c6efbb314ea175a5f;hpb=6b4c275bd0ec90bbd4f34614ece1535a6ce2bbe7;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Solver.h b/src/SketchSolver/SketchSolver_Solver.h index 944a58e69..8a4f9964e 100644 --- a/src/SketchSolver/SketchSolver_Solver.h +++ b/src/SketchSolver/SketchSolver_Solver.h @@ -21,6 +21,11 @@ typedef unsigned int UINT32; #define SLVS_RESULT_EMPTY_SET -1 +// Unknown constraint (for error reporting) +#define SLVS_C_UNKNOWN 0 +// Unknown entity +#define SLVS_E_UNKNOWN 0 + class SketchSolver_Solver { @@ -48,6 +53,12 @@ public: */ void setConstraints(const std::vector& theConstraints); + /** \brief Store the parameters of the point which was moved by user. + * The solver will watch this items to be constant + * \param[in] theDragged list of parameters (not more than 4) which should not be changed during solving + */ + void setDraggedParameters(const std::vector& theDragged); + /** \brief Solve the set of equations * \return identifier whether solution succeeded */