MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
stadface.cpp
Aller à la documentation de ce fichier.
1
//####//------------------------------------------------------------
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
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
ST_GESTIONNAIRE
Definition:
st_gestionnaire.h:55
ST_ADVANCED_FACE::nb_face_bound
long nb_face_bound
Definition:
stadface.h:51
ST_ADVANCED_FACE::ST_ADVANCED_FACE
ST_ADVANCED_FACE(long LigneCourante, std::string idori, std::vector< long > *face, long surface, int sens)
Definition:
stadface.cpp:33
ST_ADVANCED_FACE::get_orientation
virtual int get_orientation(void)
Definition:
stadface.cpp:68
ST_FACE_BOUND::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
stfacebound.cpp:46
st_gestionnaire.h
stadface.h
ST_GESTIONNAIRE::lst_facebound
TPL_MAP_ENTITE< class ST_FACE_BOUND * > lst_facebound
Definition:
st_gestionnaire.h:74
ST_IDENTIFICATEUR::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
st_ident.cpp:60
ST_FACE_BOUND
Definition:
stfacebound.h:34
ST_ADVANCED_FACE::orientation
int orientation
Definition:
stadface.h:53
ST_IDENTIFICATEUR
Definition:
st_ident.h:32
ST_ADVANCED_FACE::id_surface
long id_surface
Definition:
stadface.h:49
ST_ADVANCED_FACE::get_id_face_outer_bound
virtual long get_id_face_outer_bound(void)
Definition:
stadface.cpp:52
ST_ADVANCED_FACE::id_face_bound
long * id_face_bound
Definition:
stadface.h:52
ST_ADVANCED_FACE::get_id_face_bound
virtual long get_id_face_bound(long numero)
Definition:
stadface.cpp:62
ST_SURFACE
Definition:
st_surface.h:29
ST_ADVANCED_FACE::get_nb_face_bound
virtual long get_nb_face_bound(void)
Definition:
stadface.cpp:57
TPL_MAP_ENTITE::getid
virtual X getid(unsigned long num)
Definition:
tpl_map_entite.h:96
ST_ADVANCED_FACE::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
stadface.cpp:74
ST_ADVANCED_FACE::~ST_ADVANCED_FACE
~ST_ADVANCED_FACE()
Definition:
stadface.cpp:41
ST_ADVANCED_FACE::get_id_surface
virtual long get_id_surface(void)
Definition:
stadface.cpp:47
ST_GESTIONNAIRE::lst_surface
TPL_MAP_ENTITE< class ST_SURFACE * > lst_surface
Definition:
st_gestionnaire.h:96
ST_IDENTIFICATEUR::util
bool util
Definition:
st_ident.h:46
ST_ADVANCED_FACE::id_face_outer_bound
long id_face_outer_bound
Definition:
stadface.h:50
home
francois
tmp
addin
step
src
stadface.cpp
Généré le Samedi 2 Août 2025 23:00:10 pour MAGiC par
1.8.17