ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_definition.h
Revision: 686
Committed: Tue Jul 7 14:45:11 2015 UTC (9 years, 10 months ago) by francois
Content type: text/plain
File size: 2312 byte(s)
Log Message:
ajout d'un arbre caracteristique dans MAGiC - Phase 1 - Uniquement la structure vide pour le moment.

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // geom.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef __MAGIC_
24     #define __MAGIC_
25    
26    
27    
28    
29     #ifdef BORLANDCPP
30     #include <set.h>
31     #else
32     #include <set>
33    
34     #endif
35    
36     #include <functional>
37    
38     const int MEME_SENS=1;
39     const int SENS_CONTRAIRE=-1;
40    
41     const int OK=1;
42     const int FAIL=0;
43    
44 francois 375
45     const int MAX_TYPE_SOLUTION=9;
46 francois 410 const int MAX_ETAT=2;
47 francois 375
48 francois 283 template <class T>
49     struct inf : std::binary_function<T, T, bool> {
50     bool operator() ( const T& x, const T& y) const {
51     return x->get_id() < y->get_id();
52     }
53     };
54    
55    
56 francois 375 namespace MAGIC
57     {
58     class ENTITE_SOLUTION
59     {
60     public:
61     enum entite_solution {ENTITE_NOEUD=1,ENTITE_ELEMENT1, ENTITE_ELEMENT2,ENTITE_ELEMENT3,ENTITE_ELEMENT1_NOEUD,ENTITE_ELEMENT2_NOEUD, ENTITE_ELEMENT3_NOEUD};
62    
63     };
64 francois 283
65 francois 375 class TYPE_SOLUTION
66     {
67     public:
68     enum type_solution {SCALAIRE=1,VECTEUR=3, TENSEUR_SYM=6 ,TENSEUR=9};
69    
70     };
71 francois 551
72     class VERSION_CARTE_TAILLE
73     {
74     public:
75     enum version_carte_taille {ANCIENNE=0,NOUVELLE=1};
76 francois 581 };
77    
78    
79     class CALCUL_ASTER
80     {
81     public:
82 francois 603 enum typecalcul {MECANIQUE=0,OPTISHERBROOKE=1,OPTIMISATIONTOPOLOGIQUE=2,THERMIQUE=3,CONTRAINTE_PLANE=4,DEFORMATION_PLANE=5};
83 francois 375 };
84 francois 635
85    
86     class PROJECTION
87     {
88     public:
89     enum RESULTAT {SUCCES=0,TYPE_SOLUTION_INCORRECT=1,DIMENSION_MAILLAGE_INCOMPATIBLE=2,NON_IMPLEMENTER=3};
90     };
91 francois 686
92    
93    
94     class SEMANTIQUECSG
95     {
96     public:
97     enum semantiquecsg {SANS=100,UNION,SOUSTRACTION,INTERSECTION,PERCAGE,CONGE,CHAMFREIN};
98 francois 551 };
99 francois 686
100    
101     };
102 francois 283 #endif
103    
104