1 |
|
5 |
//------------------------------------------------------------
|
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 |
|
|
#define MEME_SENS 1
|
39 |
|
|
#define SENS_CONTRAIRE -1
|
40 |
|
|
|
41 |
|
|
#define OK 1
|
42 |
|
|
#define 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 |
|
|
|