1 |
|
1 |
/*****************************************************************
|
2 |
|
|
|
3 |
|
|
struct3d.h Type:Include
|
4 |
|
|
|
5 |
|
|
Structure de gestion pour le 3D
|
6 |
|
|
|
7 |
|
|
Date de creation : 10-3-1999 15 :29 :7
|
8 |
|
|
Derniere version : 10-3-1999 15 :29 :7
|
9 |
|
|
|
10 |
|
|
Vincent FRANCOIS
|
11 |
|
|
|
12 |
|
|
*****************************************************************/
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
#define DIFF(n) (float)(0.333333333*(fabs((double)n[0])+fabs((double)n[1])+fabs((double)n[2])))
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
#define ADJACENT3 0
|
19 |
|
|
#define ADJACENT2 1
|
20 |
|
|
#define ADJACENT1 2
|
21 |
|
|
#define LIE1 3
|
22 |
|
|
#define LIE2 4
|
23 |
|
|
#define LIE3 5
|
24 |
|
|
#define GENERAL 6
|
25 |
|
|
#define AUTRECAS 7
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
#define CREATION 10
|
29 |
|
|
#define EXISTE 11
|
30 |
|
|
#define MULTIEXISTE 12
|
31 |
|
|
#define UPDATE 13
|
32 |
|
|
|
33 |
|
|
#define VRAI 1
|
34 |
|
|
#define FAUX 0
|
35 |
|
|
|
36 |
|
|
#define ATTENTE 11
|
37 |
|
|
#define PRIORITAIRE 0
|
38 |
|
|
|
39 |
|
|
#define ACTIF 100
|
40 |
|
|
#define INACTIF 101
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
#define TROUVE -5
|
44 |
|
|
#define PASTROUVE -10
|
45 |
|
|
|
46 |
|
|
#define TRAITE -15
|
47 |
|
|
#define PASTRAITE -20
|
48 |
|
|
|
49 |
|
|
#define VALIDE 150
|
50 |
|
|
#define NONVALIDE 151
|
51 |
|
|
|
52 |
|
|
#define NEW0 201
|
53 |
|
|
#define NEW1 202
|
54 |
|
|
#define NEW2 203
|
55 |
|
|
#define NEW3 204
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
struct cas_front
|
59 |
|
|
{
|
60 |
|
|
int num;
|
61 |
|
|
int type;
|
62 |
|
|
int degre;
|
63 |
|
|
int liaison[3];
|
64 |
|
|
float angle[3];
|
65 |
|
|
int traite;
|
66 |
|
|
};
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
struct coquille
|
70 |
|
|
{
|
71 |
|
|
int n;
|
72 |
|
|
struct s_tetra *tet[10];
|
73 |
|
|
int new_tetra[64];
|
74 |
|
|
};
|
75 |
|
|
|
76 |
|
|
|