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

File Contents

# Content
1 /*****************************************************************
2
3 o3d_deraffine.cpp Type:Func
4
5 remaillage par suppression d un noeud et d une arete
6
7 Date de creation : 5-4-2000 14 :30 :39
8 Derniere version : 5-4-2000 14 :30 :39
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 <math.h>
24 #include "const.h"
25 #include "memoire.h"
26 #include "struct.h"
27 #include "struct3d.h"
28 #include "prototype.h"
29
30 /**************************/
31 /* variables globales */
32 extern struct environnement env;
33 extern struct s_mesh *mesh;
34
35
36
37 /**************************/
38 /* programme principal */
39
40 int o3d_deraffine(struct s_noeud *no)
41 {
42 int i;
43 struct s_noeud *noeud;
44 struct s_tetra *tet;
45
46 if (no->type!=BODY) return(0);
47
48 for (i=0;i<no->nb_tetra;i++)
49 {
50 tet=no->tetra[i];
51 if (tet->etat!=DETRUIT)
52 {
53
54 }
55 }
56
57
58
59
60 struct s_mesh *local_mesh;
61 local_mesh=(struct s_mesh *)calloc(1,sizeof(struct s_mesh));
62 NEW_ALLOC(noeud,local_mesh->);
63 NEW_ALLOC(segment,local_mesh->);
64 NEW_ALLOC(triangle,local_mesh->);
65 NEW_ALLOC(tetra,local_mesh->);
66
67
68
69
70
71
72
73
74
75 LIBERE_LIEN(segment,noeud,local_mesh->);
76 LIBERE_LIEN(triangle,noeud,local_mesh->);
77 LIBERE(noeud,local_mesh->);
78 LIBERE(segment,local_mesh->);
79 LIBERE(triangle,local_mesh->);
80 LIBERE(tetra,local_mesh->);
81 free(local_mesh);
82 return(1);
83 }