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 |
|
|
//####// stbrepwithvoids.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 "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 |
|
|
|