1 |
/*****************************************************************
|
2 |
|
3 |
m3d_traite_destruction.cpp Type:Func
|
4 |
|
5 |
Phase frontale de destruction
|
6 |
|
7 |
Date de creation : 24-8-1999 14 :18 :59
|
8 |
Derniere version : 24-8-1999 14 :18 :59
|
9 |
|
10 |
Vincent FRANCOIS
|
11 |
|
12 |
*****************************************************************/
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
/**************************/
|
19 |
/* include */
|
20 |
#include <stdio.h>
|
21 |
#include <string.h>
|
22 |
#include <stdlib.h>
|
23 |
#include <math.h>
|
24 |
#include "const.h"
|
25 |
#include "memoire.h"
|
26 |
#include "struct.h"
|
27 |
#include "struct3d.h"
|
28 |
#include "prototype.h"
|
29 |
|
30 |
|
31 |
/**************************/
|
32 |
/* variables globales */
|
33 |
extern struct environnment env;
|
34 |
extern struct s_mesh *mesh;
|
35 |
|
36 |
|
37 |
/**************************/
|
38 |
/* programme principal */
|
39 |
|
40 |
int m3d_traite_destruction(struct s_front3d *ft,struct s_front3d **list_inter,int nb_inter)
|
41 |
{
|
42 |
int destruction;
|
43 |
int i;
|
44 |
|
45 |
|
46 |
/* possiblite de destruction */
|
47 |
destruction=True;
|
48 |
for (i=0;i<nb_inter;i++)
|
49 |
if (list_inter[i]->tri->type==FACE) destruction=False;
|
50 |
if (destruction==False) return(NONVALIDE) ;
|
51 |
|
52 |
/* destruction des elements genants */
|
53 |
|
54 |
for (i=0;i<nb_inter;i++)
|
55 |
if (list_inter[i]->tri!=NULL) m3d_d_tetra(list_inter[i],NULL);
|
56 |
return(VALIDE);
|
57 |
|
58 |
|
59 |
}
|