ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_tetra.h
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/mg_tetra.h
File size: 3030 byte(s)
Log Message:

File Contents

# User Rev Content
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_tetra.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef _MGTETRA_
24     #define _MGTETRA_
25    
26     #ifdef WINDOWS_VERSION
27     #ifdef BUILT_DLL_GEOMETRIE
28     #define DLLPORTGEOMETRIE __declspec(dllexport)
29     #else
30     #define DLLPORTGEOMETRIE __declspec(dllimport)
31     #endif
32     #else
33     #define DLLPORTGEOMETRIE
34     #endif
35    
36    
37     #include "mg_element_maillage.h"
38     #include "mg_triangle.h"
39     #include "mg_noeud.h"
40     #include "ot_reference.h"
41     #include "ot_boite_3D.h"
42    
43     const unsigned int IDMG_TETRA=400;
44    
45    
46     class DLLPORTGEOMETRIE MG_TETRA : public MG_ELEMENT_MAILLAGE , public OT_REFERENCE
47     {
48     public:
49     MG_TETRA(unsigned long num,MG_ELEMENT_TOPOLOGIQUE* topo,class MG_NOEUD *mgnoeud1,class MG_NOEUD *mgnoeud2,class MG_NOEUD *mgnoeud3,class MG_NOEUD *mgnoeud4,class MG_TRIANGLE* mgtriangle1,class MG_TRIANGLE* mgtriangle2,class MG_TRIANGLE* mgtriangle3,class MG_TRIANGLE* mgtriangle4);
50     MG_TETRA(MG_ELEMENT_TOPOLOGIQUE* topo,class MG_NOEUD *mgnoeud1,class MG_NOEUD *mgnoeud2,class MG_NOEUD *mgnoeud3,class MG_NOEUD *mgnoeud4,class MG_TRIANGLE* mgtriangle1,class MG_TRIANGLE* mgtriangle2,class MG_TRIANGLE* mgtriangle3,class MG_TRIANGLE* mgtriangle4);
51     MG_TETRA(MG_TETRA& mdd);
52     virtual MG_TETRA* dupliquer(class MG_MAILLAGE *mgmai,long decalage);
53     virtual ~MG_TETRA();
54    
55     virtual int get_type_entite(void);
56    
57    
58     virtual MG_NOEUD* get_noeud1(void);
59     virtual MG_NOEUD* get_noeud2(void);
60     virtual MG_NOEUD* get_noeud3(void);
61     virtual MG_NOEUD* get_noeud4(void);
62     virtual MG_TRIANGLE* get_triangle1(void);
63     virtual MG_TRIANGLE* get_triangle2(void);
64     virtual MG_TRIANGLE* get_triangle3(void);
65     virtual MG_TRIANGLE* get_triangle4(void);
66    
67     virtual class BOITE_3D get_boite_3D(void);
68     virtual int get_dimension(void);
69     virtual void enregistrer(std::ostream& o);
70    
71    
72    
73     protected:
74    
75     void init_tetra(void);
76     class MG_NOEUD* noeud1;
77     class MG_NOEUD* noeud2;
78     class MG_NOEUD* noeud3;
79     class MG_NOEUD* noeud4;
80    
81     class MG_TRIANGLE* triangle1;
82     class MG_TRIANGLE* triangle2;
83     class MG_TRIANGLE* triangle3;
84     class MG_TRIANGLE* triangle4;
85    
86    
87     };
88    
89    
90    
91    
92    
93    
94     #endif
95    
96