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

File Contents

# Content
1 /*****************************************************************
2
3 m0d.c Type:Func
4
5 Maillage des vertex
6
7 Date de creation : Wed Nov 27 10:38:06 1996
8
9 Derniere version : Tue Jul 29 11:21:00 1997
10
11
12
13
14
15
16
17
18 Vincent FRANCOIS
19
20 *****************************************************************/
21
22
23
24
25
26 /**************************/
27 /* include */
28 #include <stdio.h>
29 #include <string.h>
30 #include <stdlib.h>
31 #include "const.h"
32 #include "memoire.h"
33 #include "struct.h"
34 #include "prototype.h"
35
36 /**************************/
37 /* variables globales */
38 extern struct s_acis *acis;
39 extern struct environnement env;
40 extern struct s_mesh *mesh;
41
42
43 /**************************/
44 /* programme principal */
45
46 void m0d(void)
47 {
48 struct s_vertex *vertex;
49 struct s_noeud *no;
50 int i;
51
52 aff_text(M0D_VERTEX);
53 for (i=0;i<acis->nb_vertex;i++)
54 {
55 vertex=ADRESSE(i,vertex,acis->);
56 NEW_ENTITE(no,noeud,mesh->);
57 no->num=mesh->nb_noeud-1;
58 no->x=vertex->point->coord[0];
59 no->y=vertex->point->coord[1];
60 no->z=vertex->point->coord[2];
61 no->dens=env.dens;
62 vertex->noeud=no;
63 no->type=VERTEX;
64 no->num_ent=vertex->num;
65 }
66 }