ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/mg_point.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
File size: 1806 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     //####// mg_point.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:54 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283
23    
24     #include "gestionversion.h"
25     #include "mg_point.h"
26     #include "vct_point.h"
27 francois 481 #include "ot_boite_3d.h"
28 francois 283
29    
30    
31     MG_POINT::MG_POINT(unsigned long num):MG_ELEMENT_GEOMETRIQUE(num),vect(NULL)
32     {
33     }
34    
35    
36     MG_POINT::MG_POINT():MG_ELEMENT_GEOMETRIQUE(),vect(NULL)
37     {
38     }
39    
40    
41    
42     MG_POINT::MG_POINT(MG_POINT& mdd):MG_ELEMENT_GEOMETRIQUE(),vect(NULL)
43     {
44     }
45    
46    
47     MG_POINT::~MG_POINT()
48     {
49     if (vect!=NULL) delete vect;
50     }
51    
52 couturad 906 int MG_POINT::get_type(void)
53     {
54     return TYPE_ELEMENT_GEOMETRIQUE::POINT;
55     }
56 francois 283
57 couturad 906
58 francois 283 BOITE_3D MG_POINT::get_boite_3D(void)
59     {
60     double xyz[3];
61     evaluer(xyz);
62    
63     BOITE_3D boite(xyz[0],xyz[1],xyz[2],xyz[0],xyz[1],xyz[2]);
64     return boite;
65    
66     }
67    
68     VCT& MG_POINT::get_vectorisation(void)
69     {
70     if (vect==NULL) vect=new VCT_POINT(this);
71     return *vect;
72     }