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

File Contents

# User Rev Content
1 1 /*****************************************************************
2    
3     r3d_comp.c Type:Func
4    
5     comparaison de deux geometries
6    
7     Date de creation : Wed Jul 16 11:33:41 1997
8    
9     Derniere version : Tue Jul 29 11:29:11 1997
10    
11    
12    
13    
14    
15    
16    
17     Vincent FRANCOIS
18    
19     *****************************************************************/
20    
21    
22    
23    
24    
25     /**************************/
26     /* include */
27     #include <stdio.h>
28     #include <string.h>
29     #include <stdlib.h>
30     #include <math.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     extern struct s_param *para;
42    
43    
44    
45     /**************************/
46     /* programme principal */
47    
48     void r3d_comp(void)
49     {
50     struct s_octree *oct;
51     char c,mess[255];
52     int i;
53     int nb,nb_vertex,nb_edge,nb_face;
54     float dens;
55    
56     NEW_ALLOC(zone,mesh->);
57     aff_text(R3D_COMP);
58     for (i=0;i<mesh->nb_octree;i++)
59     {
60     oct=ADRESSE(i,octree,mesh->);
61     if (oct->feuille==1)
62     {
63     do
64     {
65     r3d_file(mess);
66     }
67     while (mess[0]!='+');
68     sscanf(mess,"%c %d %f %d %d %d",&c,&nb,&dens,&nb_vertex,&nb_edge,&nb_face);
69     if (nb!=i) aff_text("big problem\n");
70     /* comparaisons des vertex */
71     r3d_comp_vertex(oct,nb_vertex,dens);
72     /* comparaisons des edge */
73     r3d_comp_edge(oct,nb_edge,dens);
74     /* comparaison des face */
75     r3d_comp_face(oct,nb_face,dens);
76     }
77     }
78     r3d_file("Close");
79     /* destruction de ce qui est possible a ce stade */
80     r3d_comp_detruit(ORIGINAL);
81    
82    
83    
84     }