Salome HOME
First phase of SketchSolver refactoring
[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 #if defined SKETCHSOLVER_EXPORTS
7 #if defined WIN32
8 #define SKETCHSOLVER_EXPORT              __declspec( dllexport )
9 #else
10 #define SKETCHSOLVER_EXPORT
11 #endif
12 #else
13 #if defined WIN32
14 #define SKETCHSOLVER_EXPORT              __declspec( dllimport )
15 #else
16 #define SKETCHSOLVER_EXPORT
17 #endif
18 #endif
19
20 /// Tolerance for value of parameters
21 const double tolerance = 1.e-10;
22
23 #define PI 3.1415926535897932
24
25 // Types for data entities enumeration
26 typedef size_t GroupID;
27 typedef size_t ParameterID;
28 typedef size_t EntityID;
29 typedef size_t ConstraintID;
30
31 // Predefined values for identifiers
32 const GroupID       GID_UNKNOWN    = 0;
33 const GroupID       GID_OUTOFGROUP = 1;
34
35 const ParameterID   PID_UNKNOWN    = 0;
36 const EntityID      EID_UNKNOWN    = 0;
37 const ConstraintID  CID_UNKNOWN    = 0;
38
39 #endif