1 |
|
5 |
//------------------------------------------------------------
|
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 |
|
|
MG_COQUILLE* MG_COFACE::get_coquille(void)
|
49 |
|
|
{
|
50 |
|
|
return coquille;
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
MG_FACE* MG_COFACE::get_face(void)
|
54 |
|
|
{
|
55 |
|
|
return face;
|
56 |
|
|
}
|
57 |
|
|
|
58 |
francois |
78 |
void MG_COFACE::change(MG_FACE* f,int ori)
|
59 |
|
|
{
|
60 |
|
|
face=f;
|
61 |
|
|
orientation=ori;
|
62 |
|
|
}
|
63 |
|
|
|
64 |
|
5 |
int MG_COFACE::get_orientation(void)
|
65 |
|
|
{
|
66 |
|
|
return orientation;
|
67 |
|
|
}
|
68 |
|
|
|
69 |
|
|
void MG_COFACE::enregistrer(std::ostream& o)
|
70 |
|
|
{
|
71 |
|
|
o << "%" << get_id() << "=COFACE($"<< face->get_id() << ",$"<<coquille->get_id() << "," << orientation << ");" << std::endl;
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|