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

File Contents

# Content
1 /*****************************************************************
2
3 m3d_frontiere.cpp Type:Func
4
5 Constitution des frontieres du body
6
7 Date de creation : 10-3-1998 15 :58 :46
8 Derniere version : 10-3-1998 15 :58 :46
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 "const.h"
24 #include "memoire.h"
25 #include "struct.h"
26 #include "prototype.h"
27
28 /**************************/
29 /* variables globales */
30 extern struct s_acis *acis;
31 extern struct environnement env;
32 extern struct s_mesh *mesh;
33 extern struct s_param *para;
34
35
36
37 /**************************/
38 /* programme principal */
39
40 void m3d_frontiere(void)
41 {
42 int i;
43 struct s_frontiere3d *fr;
44 struct s_triangle *tri;
45
46 for (i=0;i<mesh->nb_triangle;i++)
47 {
48 tri=ADRESSE(i,triangle,mesh->);
49 NEW_ENTITE(fr,frontiere3d,mesh->);
50 fr->no1=ADRESSE(tri->n1,noeud,mesh->);
51 fr->no2=ADRESSE(tri->n2,noeud,mesh->);
52 fr->no3=ADRESSE(tri->n3,noeud,mesh->);
53 fr->tri=tri;
54 fr->num=mesh->nb_frontiere3d-1;
55 oc_ins_obj(FRONTIERE3D,fr->num,mesh->first);
56 }
57 }