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 |
|
|
// ctvol_Triangle.cpp |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H21 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#include "gestionversion.h" |
26 |
|
|
|
27 |
|
|
//#pragma hdrstop |
28 |
|
|
|
29 |
|
|
#include "ctvol_triangle.h" |
30 |
|
|
#include "mg_triangle.h" |
31 |
|
|
//--------------------------------------------------------------------------- |
32 |
|
|
|
33 |
|
|
//#pragma package(smart_init) |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
CTVOL_TRIANGLE::CTVOL_TRIANGLE(class MG_TRIANGLE* tri,class CTVOL_NOEUD* n1,class CTVOL_NOEUD* n2,class CTVOL_NOEUD* n3):mgtriangle(tri),noeud1(n1),noeud2(n2),noeud3(n3) |
38 |
|
|
{ |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
CTVOL_TRIANGLE::~CTVOL_TRIANGLE() |
42 |
|
|
{ |
43 |
|
|
} |
44 |
|
|
|
45 |
|
|
long CTVOL_TRIANGLE::get_id() |
46 |
|
|
{ |
47 |
|
|
return mgtriangle->get_id(); |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
class CTVOL_NOEUD* CTVOL_TRIANGLE::get_noeud1(void) |
51 |
|
|
{ |
52 |
|
|
return noeud1; |
53 |
|
|
} |
54 |
|
|
|
55 |
|
|
class CTVOL_NOEUD* CTVOL_TRIANGLE::get_noeud2(void) |
56 |
|
|
{ |
57 |
|
|
return noeud2; |
58 |
|
|
} |
59 |
|
|
|
60 |
|
|
class CTVOL_NOEUD* CTVOL_TRIANGLE::get_noeud3(void) |
61 |
|
|
{ |
62 |
|
|
return noeud3; |
63 |
|
|
} |
64 |
|
|
|
65 |
|
|
class MG_TRIANGLE* CTVOL_TRIANGLE::get_triangle(void) |
66 |
|
|
{ |
67 |
|
|
return mgtriangle; |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
class BOITE_3D CTVOL_TRIANGLE::get_boite_3D(void) |
71 |
|
|
{ |
72 |
|
|
return mgtriangle->get_boite_3D(); |
73 |
|
|
} |