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 |
|
|
// mg_coface.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H22 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
#include "mg_coface.h" |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
MG_COFACE::MG_COFACE(unsigned long num,class MG_FACE* mgface,class MG_COQUILLE* mgcoq,int sens):MG_ELEMENT_COTOPOLOGIQUE(num),face(mgface),coquille(mgcoq),orientation(sens) |
31 |
|
|
{ |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
|
35 |
|
|
MG_COFACE::MG_COFACE(class MG_FACE* mgface,class MG_COQUILLE* mgcoq,int sens):MG_ELEMENT_COTOPOLOGIQUE(),face(mgface),coquille(mgcoq),orientation(sens) |
36 |
|
|
{ |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
MG_COFACE::MG_COFACE(class MG_COFACE& mdd):MG_ELEMENT_COTOPOLOGIQUE(),face(mdd.face),coquille(mdd.coquille),orientation(mdd.orientation) |
40 |
|
|
{ |
41 |
|
|
} |
42 |
|
|
|
43 |
|
|
|
44 |
|
|
MG_COFACE::~MG_COFACE() |
45 |
|
|
{ |
46 |
|
|
} |
47 |
|
|
|
48 |
couturad |
906 |
int MG_COFACE::get_type(void) |
49 |
|
|
{ |
50 |
|
|
return TYPE_ELEMENT_COTOPOLOGIQUE::COFACE; |
51 |
|
|
} |
52 |
|
|
|
53 |
|
|
|
54 |
francois |
283 |
MG_COQUILLE* MG_COFACE::get_coquille(void) |
55 |
|
|
{ |
56 |
|
|
return coquille; |
57 |
|
|
} |
58 |
|
|
|
59 |
|
|
MG_FACE* MG_COFACE::get_face(void) |
60 |
|
|
{ |
61 |
|
|
return face; |
62 |
|
|
} |
63 |
|
|
|
64 |
|
|
void MG_COFACE::change(MG_FACE* f,int ori) |
65 |
|
|
{ |
66 |
|
|
face=f; |
67 |
|
|
orientation=ori; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
int MG_COFACE::get_orientation(void) |
71 |
|
|
{ |
72 |
|
|
return orientation; |
73 |
|
|
} |
74 |
|
|
|
75 |
francois |
763 |
void MG_COFACE::enregistrer(std::ostream& o,double version) |
76 |
francois |
283 |
{ |
77 |
|
|
o << "%" << get_id() << "=COFACE($"<< face->get_id() << ",$"<<coquille->get_id() << "," << orientation << ");" << std::endl; |
78 |
|
|
} |
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|