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

File Contents

# Content
1 /*****************************************************************
2
3 m1d.c Type:Func
4
5 Maillage lineique
6
7 Date de creation : Thu Nov 28 09:20:04 1996
8
9 Derniere version : Tue Jul 29 11:21:29 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 "const.h"
30 #include "memoire.h"
31 #include "struct.h"
32 #include "prototype.h"
33
34 /**************************/
35 /* variables globales */
36 extern struct s_acis *acis;
37 extern struct environnement env;
38 extern struct s_mesh *mesh;
39 extern struct s_param *para;
40
41
42
43 /**************************/
44 /* programme principal */
45
46 void m1d(void)
47 {
48 struct s_edge *edge;
49 struct s_straight *straight;
50 struct s_ellipse *ellipse;
51 int i;
52
53 aff_text(M1D_EDGE);
54 aff_text(M1D_PARA);
55 for (i=0;i<acis->nb_edge;i++)
56 {
57 edge=ADRESSE(i,edge,acis->);
58 if (strcmp(acis->type_entite[edge->curve],"straight-curve")==0)
59 {
60 straight=(struct s_straight *)acis->entity[edge->curve];
61 m1d_param_straight(edge,straight);
62 }
63 if (strcmp(acis->type_entite[edge->curve],"ellipse-curve")==0)
64 {
65 ellipse=(struct s_ellipse *)acis->entity[edge->curve];
66 m1d_param_ellipse(edge,ellipse);
67 }
68 }
69 aff_text(M1D_GEO);
70 m1d_geo();
71 if (env.geo==1) return;
72 aff_text(M1D_DIS);
73 m1d_dis();
74 aff_text(M1D_LISS);
75 m1d_enreg();
76 m1d_lissage(0,mesh->nb_segment);
77 }