1 |
francois |
285 |
//------------------------------------------------------------ |
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 |
|
|
// m3d_noeud.h |
16 |
|
|
// |
17 |
|
|
//------------------------------------------------------------ |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
// COPYRIGHT 2000 |
20 |
|
|
// Version du 02/03/2006 � 11H23 |
21 |
|
|
//------------------------------------------------------------ |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
|
24 |
|
|
#ifndef dly_segmentH |
25 |
|
|
#define dly_segmentH |
26 |
|
|
//--------------------------------------------------------------------------- |
27 |
|
|
|
28 |
|
|
#include <vector> |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
class DLY_SEGMENT |
33 |
|
|
{ |
34 |
|
|
public: |
35 |
|
|
DLY_SEGMENT(class DLY_NOEUD *no1,class DLY_NOEUD *no2); |
36 |
|
|
DLY_SEGMENT(DLY_SEGMENT& mdd); |
37 |
|
|
virtual ~DLY_SEGMENT(); |
38 |
|
|
|
39 |
|
|
DLY_NOEUD* get_noeud1(void); |
40 |
|
|
DLY_NOEUD* get_noeud2(void); |
41 |
|
|
|
42 |
|
|
void insere_lien_tetra(class DLY_TETRA* tet); |
43 |
|
|
int tet_est_present(DLY_TETRA* tet); |
44 |
|
|
int get_nb_tetra(void); |
45 |
|
|
DLY_TETRA* get_tetra(int i); |
46 |
|
|
DLY_TETRA* get_tetra_feuille(void); |
47 |
|
|
double get_longueur(void); |
48 |
|
|
double calcul_longueur(class FCT_TAILLE *metrique=NULL,int conserve=1); |
49 |
|
|
void decoupe_noeud(std::vector<double> &lstpt) ; |
50 |
|
|
double get_critere(void); |
51 |
|
|
void change_critere(double crit); |
52 |
|
|
|
53 |
|
|
private: |
54 |
|
|
DLY_NOEUD* noeud1; |
55 |
|
|
DLY_NOEUD* noeud2; |
56 |
|
|
std::vector<class DLY_TETRA*> lsttet; |
57 |
|
|
double longueur; |
58 |
|
|
double critere; |
59 |
|
|
double t_demilongueur; |
60 |
|
|
}; |
61 |
|
|
|
62 |
|
|
|
63 |
|
|
#endif |