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 |
|
|
// stbrepwithvoids.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H24 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
|
27 |
|
|
#include "st_ident.h" |
28 |
|
|
#include "st_gestionnaire.h" |
29 |
|
|
#include "stbrepwithvoids.h" |
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
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) |
34 |
|
|
{ |
35 |
|
|
nb_oriented_closed_shell=oriented_closed_shell->size(); |
36 |
|
|
id_oriented_closed_shell=new long[nb_oriented_closed_shell]; |
37 |
|
|
for (long i=0;i<nb_oriented_closed_shell;i++) |
38 |
|
|
id_oriented_closed_shell[i]=(*oriented_closed_shell)[i]; |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
ST_BREP_WITH_VOIDS::~ST_BREP_WITH_VOIDS() |
42 |
|
|
{ |
43 |
|
|
delete [] id_oriented_closed_shell; |
44 |
|
|
} |
45 |
|
|
|
46 |
|
|
long ST_BREP_WITH_VOIDS::get_nb_oriented_closed_shell(void) |
47 |
|
|
{ |
48 |
|
|
return nb_oriented_closed_shell; |
49 |
|
|
} |
50 |
|
|
long ST_BREP_WITH_VOIDS::get_id_oriented_closed_shell(long numero) |
51 |
|
|
{ |
52 |
|
|
return id_oriented_closed_shell[numero]; |
53 |
|
|
} |
54 |
|
|
long ST_BREP_WITH_VOIDS::get_id_closed_shell(void) |
55 |
|
|
{ |
56 |
|
|
return id_closed_shell; |
57 |
|
|
} |
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
void ST_BREP_WITH_VOIDS::est_util(ST_GESTIONNAIRE* gest) |
63 |
|
|
{ |
64 |
|
|
util=true; |
65 |
|
|
ST_CLOSED_SHELL* shell=gest->lst_closed_shell.getid(id_closed_shell); |
66 |
|
|
shell->est_util(gest); |
67 |
|
|
for (long i=0;i<nb_oriented_closed_shell;i++) |
68 |
|
|
{ |
69 |
|
|
ST_ORIENTED_CLOSED_SHELL* shell=gest->lst_oriented_closed_shell.getid(id_oriented_closed_shell[i]); |
70 |
|
|
shell->est_util(gest); |
71 |
|
|
} |
72 |
|
|
} |
73 |
|
|
|