]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchSolver/SketchSolver_Solver.h
Salome HOME
Add tools
[modules/shaper.git] / src / SketchSolver / SketchSolver_Solver.h
index bdc23ce288182adff99c5752d3f0befc5d06e60f..f90d71fd2f816d3f66f38e41585137e8324eb645 100644 (file)
@@ -25,7 +25,11 @@ typedef unsigned int UINT32;
 // Unknown constraint (for error reporting)
 #define SLVS_C_UNKNOWN 0
 // Fillet constraint identifier
-#define SLVS_C_FILLET 100100
+#define SLVS_C_FILLET            100100
+// Multi-rotation constraint identifier
+#define SLVS_C_MULTI_ROTATION    100101
+// Multi-translation constraint identifier
+#define SLVS_C_MULTI_TRANSLATION 100102
 // Unknown entity
 #define SLVS_E_UNKNOWN 0
 // Unknown group
@@ -71,6 +75,11 @@ class SketchSolver_Solver
    */
   void setDraggedParameters(const Slvs_hParam* theDragged);
 
+  /** \brief Set or unset the flag which allows to find all failed constraints
+   */
+  void calculateFailedConstraints(bool theSic)
+  { myEquationsSystem.calculateFaileds = theSic ? 1 : 0; }
+
   /** \brief Solve the set of equations
    *  \return identifier whether solution succeeded
    */