MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
stbrepwithvoids.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
//####// stbrepwithvoids.cpp
15
//####//
16
//####//------------------------------------------------------------
17
//####//------------------------------------------------------------
18
//####// COPYRIGHT 2000-2024
19
//####// jeu 13 jun 2024 11:53:59 EDT
20
//####//------------------------------------------------------------
21
//####//------------------------------------------------------------
22
23
24
25
#include "
st_ident.h
"
26
#include "
st_gestionnaire.h
"
27
#include "
stbrepwithvoids.h
"
28
29
30
31
ST_BREP_WITH_VOIDS::ST_BREP_WITH_VOIDS
(
long
LigneCourante,std::string idori,
long
closed_shell,std::vector<long> *oriented_closed_shell):
ST_IDENTIFICATEUR
(LigneCourante,idori),id_closed_shell(closed_shell)
32
{
33
nb_oriented_closed_shell
=oriented_closed_shell->size();
34
id_oriented_closed_shell
=
new
long
[
nb_oriented_closed_shell
];
35
for
(
long
i=0;i<
nb_oriented_closed_shell
;i++)
36
id_oriented_closed_shell
[i]=(*oriented_closed_shell)[i];
37
}
38
39
ST_BREP_WITH_VOIDS::~ST_BREP_WITH_VOIDS
()
40
{
41
delete
[]
id_oriented_closed_shell
;
42
}
43
44
long
ST_BREP_WITH_VOIDS::get_nb_oriented_closed_shell
(
void
)
45
{
46
return
nb_oriented_closed_shell
;
47
}
48
long
ST_BREP_WITH_VOIDS::get_id_oriented_closed_shell
(
long
numero)
49
{
50
return
id_oriented_closed_shell
[numero];
51
}
52
long
ST_BREP_WITH_VOIDS::get_id_closed_shell
(
void
)
53
{
54
return
id_closed_shell
;
55
}
56
57
58
59
60
void
ST_BREP_WITH_VOIDS::est_util
(
ST_GESTIONNAIRE
* gest)
61
{
62
util
=
true
;
63
ST_CLOSED_SHELL
* shell=gest->
lst_closed_shell
.
getid
(
id_closed_shell
);
64
shell->
est_util
(gest);
65
for
(
long
i=0;i<
nb_oriented_closed_shell
;i++)
66
{
67
ST_ORIENTED_CLOSED_SHELL
* shell=gest->
lst_oriented_closed_shell
.
getid
(
id_oriented_closed_shell
[i]);
68
shell->
est_util
(gest);
69
}
70
}
71
ST_GESTIONNAIRE
Definition:
st_gestionnaire.h:55
ST_BREP_WITH_VOIDS::id_oriented_closed_shell
long * id_oriented_closed_shell
Definition:
stbrepwithvoids.h:47
ST_GESTIONNAIRE::lst_oriented_closed_shell
TPL_MAP_ENTITE< class ST_ORIENTED_CLOSED_SHELL * > lst_oriented_closed_shell
Definition:
st_gestionnaire.h:83
ST_CLOSED_SHELL
Definition:
stclosedshell.h:34
st_gestionnaire.h
ST_BREP_WITH_VOIDS::get_nb_oriented_closed_shell
virtual long get_nb_oriented_closed_shell(void)
Definition:
stbrepwithvoids.cpp:44
ST_BREP_WITH_VOIDS::id_closed_shell
long id_closed_shell
Definition:
stbrepwithvoids.h:45
stbrepwithvoids.h
ST_CLOSED_SHELL::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
stclosedshell.cpp:59
ST_ORIENTED_CLOSED_SHELL
Definition:
storientedclosedshell.h:33
ST_BREP_WITH_VOIDS::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
stbrepwithvoids.cpp:60
ST_BREP_WITH_VOIDS::ST_BREP_WITH_VOIDS
ST_BREP_WITH_VOIDS(long LigneCourante, std::string idori, long closed_shell, std::vector< long > *brep_with_voids)
Definition:
stbrepwithvoids.cpp:31
st_ident.h
ST_BREP_WITH_VOIDS::get_id_oriented_closed_shell
virtual long get_id_oriented_closed_shell(long numero)
Definition:
stbrepwithvoids.cpp:48
ST_IDENTIFICATEUR
Definition:
st_ident.h:32
ST_BREP_WITH_VOIDS::nb_oriented_closed_shell
long nb_oriented_closed_shell
Definition:
stbrepwithvoids.h:46
ST_BREP_WITH_VOIDS::get_id_closed_shell
virtual long get_id_closed_shell(void)
Definition:
stbrepwithvoids.cpp:52
TPL_MAP_ENTITE::getid
virtual X getid(unsigned long num)
Definition:
tpl_map_entite.h:96
ST_ORIENTED_CLOSED_SHELL::est_util
virtual void est_util(class ST_GESTIONNAIRE *gest)
Definition:
storientedclosedshell.cpp:53
ST_BREP_WITH_VOIDS::~ST_BREP_WITH_VOIDS
~ST_BREP_WITH_VOIDS()
Definition:
stbrepwithvoids.cpp:39
ST_IDENTIFICATEUR::util
bool util
Definition:
st_ident.h:46
ST_GESTIONNAIRE::lst_closed_shell
TPL_MAP_ENTITE< class ST_CLOSED_SHELL * > lst_closed_shell
Definition:
st_gestionnaire.h:82
home
francois
tmp
addin
step
src
stbrepwithvoids.cpp
Généré le Jeudi 12 Juin 2025 23:00:10 pour MAGiC par
1.8.17