Salome HOME
8beb83a984e5e8d150ab38abe46a4b2a70c852aa
[modules/shaper.git] / src / SketchSolver / SketchSolver.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #ifndef SKETCHSOLVER_H
4 #define SKETCHSOLVER_H
5
6 #include <stdlib.h>
7
8 #if defined SKETCHSOLVER_EXPORTS
9 #if defined WIN32
10 #define SKETCHSOLVER_EXPORT              __declspec( dllexport )
11 #else
12 #define SKETCHSOLVER_EXPORT
13 #endif
14 #else
15 #if defined WIN32
16 #define SKETCHSOLVER_EXPORT              __declspec( dllimport )
17 #else
18 #define SKETCHSOLVER_EXPORT
19 #endif
20 #endif
21
22 /// Tolerance for value of parameters
23 const double tolerance = 1.e-10;
24
25 #define PI 3.1415926535897932
26
27 // Types for data entities enumeration
28 typedef size_t GroupID;
29 typedef size_t ParameterID;
30 typedef size_t EntityID;
31 typedef size_t ConstraintID;
32
33 // Predefined values for identifiers
34 const GroupID       GID_UNKNOWN    = 0;
35 const GroupID       GID_OUTOFGROUP = 1;
36
37 const ParameterID   PID_UNKNOWN    = 0;
38 const EntityID      EID_UNKNOWN    = 0;
39 const EntityID      EID_SKETCH     = 1;
40 const ConstraintID  CID_UNKNOWN    = 0;
41
42 #endif