ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/poly_occ/src/ot_boite_3d.h
Revision: 1009
Committed: Mon Mar 25 16:40:06 2019 UTC (6 years, 1 month ago) by francois
Content type: text/plain
File size: 2462 byte(s)
Log Message:
ajout de fichier pour les polycristaux (ajout temporaire)

File Contents

# User Rev Content
1 francois 1009 //------------------------------------------------------------
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     // ot_boite_3D.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H23
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef __BOITE3D_
24     #define __BOITE3D_
25    
26    
27     #ifdef WINDOWS_VERSION
28     #ifdef BUILT_DLL_OUTIL
29     #define DLLPORTOUTIL __declspec(dllexport)
30     #else
31     #define DLLPORTOUTIL __declspec(dllimport)
32     #endif
33     #else
34     #define DLLPORTOUTIL
35     #endif
36    
37     class DLLPORTOUTIL BOITE_3D
38     {
39     public :
40     BOITE_3D(double xmin,double ymin,double zmin,double xmax,double ymax,double zmax);
41     BOITE_3D(void);
42     BOITE_3D(const BOITE_3D& mdd);
43     BOITE_3D(BOITE_3D& mdd);
44     virtual ~BOITE_3D();
45    
46     double get_xmin(void);
47     double get_xmax(void);
48     double get_ymin(void);
49     double get_ymax(void);
50     double get_zmin(void);
51     double get_zmax(void);
52     double get_xcentre(void);
53     double get_ycentre(void);
54     double get_zcentre(void);
55    
56     double get_volume(void);
57    
58     //BOITE_3D operator=(BOITE_3D& boite);
59     friend BOITE_3D operator&(const BOITE_3D& boite1,const BOITE_3D& boite2);
60     friend BOITE_3D operator+(const BOITE_3D& boite1,const BOITE_3D& boite2);
61     int operator*(BOITE_3D& boite);
62     int get_intersection(BOITE_3D& boite1);
63     int operator*(const BOITE_3D& boite);
64    
65    
66     double get_rayon(void);
67     void get_centre(double *coo);
68     void reinit(double xmin,double ymin,double zmin,double xmax,double ymax,double zmax);
69     void reinit(BOITE_3D& boite);
70     int contient(double x,double y,double z);
71     void change_grosseur(double f);
72     private :
73     double x;
74     double y;
75     double z;
76     double dx;
77     double dy;
78     double dz;
79     };
80    
81    
82    
83    
84    
85    
86     #endif