ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/addin/step/src/stadface.cpp
Revision: 1156
Committed: Thu Jun 13 22:02:48 2024 UTC (14 months ago) by francois
File size: 2312 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1156 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// stadface.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:53:59 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283
23    
24    
25     #include <string.h>
26     #include <vector>
27     #include "st_gestionnaire.h"
28     #include "stadface.h"
29    
30    
31    
32    
33     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)
34     {
35     nb_face_bound=face->size();
36     id_face_bound=new long[nb_face_bound];
37     for (long i=0;i<nb_face_bound;i++)
38     id_face_bound[i]=(*face)[i];
39     }
40    
41     ST_ADVANCED_FACE::~ST_ADVANCED_FACE()
42     {
43     delete [] id_face_bound;
44     }
45    
46    
47     long ST_ADVANCED_FACE::get_id_surface(void)
48     {
49     return id_surface;
50     }
51    
52     long ST_ADVANCED_FACE::get_id_face_outer_bound(void)
53     {
54     return id_face_outer_bound;
55     }
56    
57     long ST_ADVANCED_FACE::get_nb_face_bound(void)
58     {
59     return nb_face_bound;
60     }
61    
62     long ST_ADVANCED_FACE::get_id_face_bound(long numero)
63     {
64     return id_face_bound[numero];
65     }
66    
67    
68     int ST_ADVANCED_FACE::get_orientation(void)
69     {
70     return orientation;
71     }
72    
73    
74     void ST_ADVANCED_FACE::est_util(ST_GESTIONNAIRE* gest)
75     {
76     util=true;
77     ST_SURFACE* surf=gest->lst_surface.getid(id_surface);
78     surf->est_util(gest);
79     for (int i=0;i<nb_face_bound;i++)
80     {
81     ST_FACE_BOUND* fob=gest->lst_facebound.getid(id_face_bound[i]);
82     fob->est_util(gest);
83     }
84     }
85