ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/acismesh/r3d_zone.cpp
Revision: 1
Committed: Mon Jun 11 22:53:07 2007 UTC (17 years, 11 months ago)
File size: 1748 byte(s)
Log Message:

File Contents

# User Rev Content
1 1 /*****************************************************************
2    
3     r3d_zone.cpp Type:Func
4    
5     Creation d une zone de destruction
6    
7     Date de creation : 16-9-1997 9 :13 :36
8     Derniere version : 16-9-1997 9 :13 :36
9    
10     Vincent FRANCOIS
11    
12     *****************************************************************/
13    
14    
15    
16    
17    
18     /**************************/
19     /* include */
20     #include <stdio.h>
21     #include <stdlib.h>
22     #include <string.h>
23     #include <math.h>
24     #include "const.h"
25     #include "memoire.h"
26     #include "struct.h"
27     #include "prototype.h"
28    
29     /**************************/
30     /* variables globales */
31     extern struct s_acis *acis;
32     extern struct environnement env;
33     extern struct s_mesh *mesh;
34     extern struct s_param *para;
35    
36    
37     /**************************/
38     /* programme principal */
39    
40     void r3d_zone(int type,int reference,struct s_octree *oct,float dens,int type_entite,int num,int nb_entite,int *l_entite)
41     {
42     struct s_zone *zone;
43     int i;
44    
45     NEW_ENTITE(zone,zone,mesh->);
46     zone->type=type;
47     zone->reference=reference;
48     zone->oct=oct;
49     zone->dens=dens;
50     zone->type_entite=type_entite;
51     zone->num=num;
52     zone->nb_entite=nb_entite;
53     for (i=0;i<nb_entite;i++)
54     zone->entite[i]=l_entite[i];
55     }