X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver.h;h=8beb83a984e5e8d150ab38abe46a4b2a70c852aa;hb=176403004ff97696f3c0b5f8bdf48692177fb34a;hp=f31b7e49f65076ca43234ad50f1a5f5c1b50b258;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver.h b/src/SketchSolver/SketchSolver.h index f31b7e49f..8beb83a98 100644 --- a/src/SketchSolver/SketchSolver.h +++ b/src/SketchSolver/SketchSolver.h @@ -3,6 +3,8 @@ #ifndef SKETCHSOLVER_H #define SKETCHSOLVER_H +#include + #if defined SKETCHSOLVER_EXPORTS #if defined WIN32 #define SKETCHSOLVER_EXPORT __declspec( dllexport ) @@ -17,4 +19,24 @@ #endif #endif +/// Tolerance for value of parameters +const double tolerance = 1.e-10; + +#define PI 3.1415926535897932 + +// Types for data entities enumeration +typedef size_t GroupID; +typedef size_t ParameterID; +typedef size_t EntityID; +typedef size_t ConstraintID; + +// Predefined values for identifiers +const GroupID GID_UNKNOWN = 0; +const GroupID GID_OUTOFGROUP = 1; + +const ParameterID PID_UNKNOWN = 0; +const EntityID EID_UNKNOWN = 0; +const EntityID EID_SKETCH = 1; +const ConstraintID CID_UNKNOWN = 0; + #endif