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

File Contents

# User Rev Content
1 1 /*****************************************************************
2    
3     eval_edge.cpp Type:Inc
4    
5     Calul des caracteristiques sur une edge
6    
7     Date de creation : 17-2-1999 10 :48 :49
8     Derniere version : 17-2-1999 10 :48 :49
9    
10     Vincent FRANCOIS
11    
12     *****************************************************************/
13    
14    
15    
16    
17    
18     /**************************/
19     /* include */
20     #include <stdio.h>
21     #include <string.h>
22     #include <math.h>
23     #include <stdlib.h>
24     #include "const.h"
25     #include "struct.h"
26     #include "memoire.h"
27     #include "prototype.h"
28    
29    
30     /**************************/
31     /* variables globales */
32     extern struct s_param *para;
33     extern struct environnement env;
34     extern struct s_acis *acis;
35     extern struct s_mesh *mesh;
36    
37    
38    
39     /**************************/
40     /* programme principal */
41    
42     void eval_edge(struct s_edge *edge,float t,int type,float *coord)
43     {
44     struct s_straight *straight;
45     struct s_ellipse *ellipse;
46    
47    
48     straight=NULL;
49     ellipse=NULL;
50     if (strcmp(acis->type_entite[edge->curve],"straight-curve")==0)
51     straight=(struct s_straight *)acis->entity[edge->curve];
52     if (strcmp(acis->type_entite[edge->curve],"ellipse-curve")==0)
53     ellipse=(struct s_ellipse *)acis->entity[edge->curve];
54     if (straight!=NULL) eval_straight(straight->param,t,type,coord);
55     if (ellipse!=NULL) eval_ellipse(ellipse->param,t,type,coord);
56    
57    
58     }