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

File Contents

# Content
1 /*****************************************************************
2
3 r3d_m0d.cpp Type:Func
4
5 Remaillage des vertex
6
7 Date de creation : 12-8-1997 13 :54 :58
8 Derniere version : 12-8-1997 13 :54 :58
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 environnement env;
31 extern struct s_mesh *mesh;
32 extern struct s_maillage *maillage;
33 extern struct s_acis *acis;
34
35
36
37 /**************************/
38 /* programme principal */
39
40 void r3d_m0d(void)
41 {
42 int i;
43 struct s_vertex *vertex;
44 struct s_noeud *no;
45
46 for (i=0;i<acis->nb_vertex;i++)
47 {
48 vertex=ADRESSE(i,vertex,acis->);
49 if (vertex->noeud==NULL)
50 {
51 NEW_ENTITE(no,noeud,mesh->);
52 no->num=mesh->nb_noeud-1;
53 no->x=vertex->point->coord[0];
54 no->y=vertex->point->coord[1];
55 no->z=vertex->point->coord[2];
56 no->type=VERTEX;
57 no->num_ent=vertex->num;
58 vertex->noeud=no;
59 }
60 }
61 for (i=0;i<mesh->nb_noeud;i++)
62 oc_ins_obj(NOEUD,i,mesh->first);
63 mesh->nb_noeud_traite=mesh->nb_noeud;
64 }