MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
sphere_grille.cpp
Aller à la documentation de ce fichier.
1
//####//------------------------------------------------------------
2
//####//------------------------------------------------------------
3
//####// MAGiC
4
//####// Jean Christophe Cuilliere et Vincent FRANCOIS
5
//####// Departement de Genie Mecanique - UQTR
6
//####//------------------------------------------------------------
7
//####// MAGIC est un projet de recherche de l equipe ERICCA
8
//####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9
//####// http://www.uqtr.ca/ericca
10
//####// http://www.uqtr.ca/
11
//####//------------------------------------------------------------
12
//####//------------------------------------------------------------
13
//####//
14
//####// sphere_grille.cpp
15
//####//
16
//####//------------------------------------------------------------
17
//####//------------------------------------------------------------
18
//####// COPYRIGHT 2000-2024
19
//####// jeu 13 jun 2024 11:58:57 EDT
20
//####//------------------------------------------------------------
21
//####//------------------------------------------------------------
22
#include "
sphere_grille.h
"
23
24
SPHERE_GRILLE::SPHERE_GRILLE
(
double
x,
double
y,
double
z,
double
r,
long
iid)
25
{
26
point
[0]=x;
27
point
[1]=y;
28
point
[2]=z;
29
rayon
=r;
30
boite
=
new
BOITE_3D
(
point
[0]-
rayon
,
point
[1]-
rayon
,
point
[2]-
rayon
,
31
point
[0]+
rayon
,
point
[1]+
rayon
,
point
[2]+
rayon
);
32
id
=iid;
33
}
34
35
SPHERE_GRILLE::~SPHERE_GRILLE
()
36
{
37
delete
boite
;
38
}
39
40
void
SPHERE_GRILLE::get_xyz
(
double
* xyz)
41
{
42
xyz[0] =
point
[0];
43
xyz[1] =
point
[1];
44
xyz[2] =
point
[2];
45
}
46
47
long
unsigned
int
SPHERE_GRILLE::get_id
()
48
{
49
return
id
;
50
}
51
52
BOITE_3D
SPHERE_GRILLE::get_boite_3D
(
void
)
53
{
54
return
*
boite
;
55
}
56
57
double
SPHERE_GRILLE::get_rayon
()
58
{
59
return
rayon
;
60
}
SPHERE_GRILLE::point
double point[3]
Definition:
sphere_grille.h:39
SPHERE_GRILLE::get_rayon
double get_rayon()
Definition:
sphere_grille.cpp:57
SPHERE_GRILLE::get_xyz
void get_xyz(double *xyz)
Definition:
sphere_grille.cpp:40
SPHERE_GRILLE::boite
class BOITE_3D * boite
Definition:
sphere_grille.h:41
SPHERE_GRILLE::rayon
double rayon
Definition:
sphere_grille.h:40
SPHERE_GRILLE::get_boite_3D
class BOITE_3D get_boite_3D(void)
Definition:
sphere_grille.cpp:52
BOITE_3D
Definition:
ot_boite_3d.h:27
sphere_grille.h
SPHERE_GRILLE::get_id
unsigned long get_id()
Definition:
sphere_grille.cpp:47
SPHERE_GRILLE::SPHERE_GRILLE
SPHERE_GRILLE(double x, double y, double z, double r, long iid)
Definition:
sphere_grille.cpp:24
SPHERE_GRILLE::~SPHERE_GRILLE
~SPHERE_GRILLE()
Definition:
sphere_grille.cpp:35
SPHERE_GRILLE::id
unsigned long id
Definition:
sphere_grille.h:42
home
francois
tmp
lib
microstructure
src
sphere_grille.cpp
Généré le Jeudi 12 Juin 2025 23:00:10 pour MAGiC par
1.8.17