ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/addin/step/src/stadface.cpp
Revision: 1113
Committed: Wed May 3 17:58:11 2023 UTC (2 years, 3 months ago) by francois
File size: 2375 byte(s)
Log Message:
Les "vieilles" librairie de step et sat sont déplacés dans addin afin qu'elles ne soient plus directement dans MAGiC . Etape 1 d'un meilleur rapprochement avec la MTU décrite dans la publi. 

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // stadface.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H24
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25 francois 1113 //#include "gestionversion.h"
26 francois 283
27     #include <string.h>
28     #include <vector>
29     #include "st_gestionnaire.h"
30     #include "stadface.h"
31    
32    
33    
34    
35     ST_ADVANCED_FACE::ST_ADVANCED_FACE(long LigneCourante,std::string idori,std::vector<long> *face,long surface,int sens):ST_IDENTIFICATEUR(LigneCourante,idori),id_surface(surface),orientation(sens)
36     {
37     nb_face_bound=face->size();
38     id_face_bound=new long[nb_face_bound];
39     for (long i=0;i<nb_face_bound;i++)
40     id_face_bound[i]=(*face)[i];
41     }
42    
43     ST_ADVANCED_FACE::~ST_ADVANCED_FACE()
44     {
45     delete [] id_face_bound;
46     }
47    
48    
49     long ST_ADVANCED_FACE::get_id_surface(void)
50     {
51     return id_surface;
52     }
53    
54     long ST_ADVANCED_FACE::get_id_face_outer_bound(void)
55     {
56     return id_face_outer_bound;
57     }
58    
59     long ST_ADVANCED_FACE::get_nb_face_bound(void)
60     {
61     return nb_face_bound;
62     }
63    
64     long ST_ADVANCED_FACE::get_id_face_bound(long numero)
65     {
66     return id_face_bound[numero];
67     }
68    
69    
70     int ST_ADVANCED_FACE::get_orientation(void)
71     {
72     return orientation;
73     }
74    
75    
76     void ST_ADVANCED_FACE::est_util(ST_GESTIONNAIRE* gest)
77     {
78     util=true;
79     ST_SURFACE* surf=gest->lst_surface.getid(id_surface);
80     surf->est_util(gest);
81     //ST_FACE_BOUND* fob=gest->lst_facebound.getid(id_face_outer_bound);
82     //fob->est_util(gest);
83     for (int i=0;i<nb_face_bound;i++)
84     {
85     ST_FACE_BOUND* fob=gest->lst_facebound.getid(id_face_bound[i]);
86     fob->est_util(gest);
87     }
88     }
89