Salome HOME
#1123 Cancel constraint after preview: the edge does not go back to its previous...
[modules/shaper.git] / src / SketchSolver / SketchSolver_Solver.h
index 46e83afd0bf8f6b9eaffdbab6f8bccde08cde368..52ac18f98d44e05ba3e4f83a54ac8ee7b1ca64f5 100644 (file)
@@ -34,6 +34,8 @@ typedef unsigned int UINT32;
 #define SLVS_E_UNKNOWN 0
 // Unknown group
 #define SLVS_G_UNKNOWN 0
+// Group ID to store external objects
+#define SLVS_G_OUTOFGROUP 1
 
 /**
  * The main class that performs the high-level operations for connection to the SolveSpace.
@@ -75,6 +77,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
    */