1 |
francois |
283 |
#include <stdio.h> |
2 |
|
|
#include <stdlib.h> |
3 |
|
|
#include "r3d_struct.h" |
4 |
|
|
#include "m3d_const.h" |
5 |
|
|
#include "m3d_hotes.h" |
6 |
|
|
#include "prototype2.h" |
7 |
|
|
extern GEST_MEM *gest_r ; |
8 |
|
|
extern int debug ; |
9 |
|
|
void r3d_lib(void) |
10 |
|
|
{ |
11 |
|
|
if (gest_r->numele !=NULL) free(gest_r->numele) ; |
12 |
|
|
if (gest_r->coord !=NULL) free(gest_r->coord) ; |
13 |
|
|
if (gest_r->corresp !=NULL) free(gest_r->corresp) ; |
14 |
|
|
if (gest_r->tabele !=NULL) free(gest_r->tabele) ; |
15 |
|
|
|
16 |
|
|
FREE_ALLOC(noeud) |
17 |
|
|
FREE_ALLOC(face) |
18 |
|
|
FREE_ALLOC(tetra) |
19 |
|
|
FREE_ALLOC(connec) |
20 |
|
|
free(gest_r) ; |
21 |
|
|
gest_r = NULL ; |
22 |
|
|
return ; |
23 |
|
|
} |