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 |
|
|
template <class T> |
45 |
|
|
struct inf : std::binary_function<T, T, bool> { |
46 |
|
|
bool operator() ( const T& x, const T& y) const { |
47 |
|
|
return x->get_id() < y->get_id(); |
48 |
|
|
} |
49 |
|
|
}; |
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
#endif |
54 |
|
|
|
55 |
|
|
|