X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver.h;h=8beb83a984e5e8d150ab38abe46a4b2a70c852aa;hb=cbfb230b4c72dc5925c94b64cb93c690a4c2f069;hp=2f98bf53eb8f9ee60ed9e259ccb4d01c357877f7;hpb=277db1718bb7a3226515e4cc2272d83b463b3434;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver.h b/src/SketchSolver/SketchSolver.h index 2f98bf53e..8beb83a98 100644 --- a/src/SketchSolver/SketchSolver.h +++ b/src/SketchSolver/SketchSolver.h @@ -1,6 +1,10 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #ifndef SKETCHSOLVER_H #define SKETCHSOLVER_H +#include + #if defined SKETCHSOLVER_EXPORTS #if defined WIN32 #define SKETCHSOLVER_EXPORT __declspec( dllexport ) @@ -15,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