ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/microstructure/src/sphere_grille.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 1718 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
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 couturad 772 #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     }