ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_point.cpp
Revision: 906
Committed: Mon Nov 13 22:30:18 2017 UTC (7 years, 9 months ago) by couturad
File size: 1747 byte(s)
Log Message:
Nouveau opencascade commit 1

File Contents

# Content
1 //------------------------------------------------------------
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_point.cpp
16 //
17 //------------------------------------------------------------
18 //------------------------------------------------------------
19 // COPYRIGHT 2000
20 // Version du 02/03/2006 � 11H22
21 //------------------------------------------------------------
22 //------------------------------------------------------------
23
24
25 #include "gestionversion.h"
26 #include "mg_point.h"
27 #include "vct_point.h"
28 #include "ot_boite_3d.h"
29
30
31
32 MG_POINT::MG_POINT(unsigned long num):MG_ELEMENT_GEOMETRIQUE(num),vect(NULL)
33 {
34 }
35
36
37 MG_POINT::MG_POINT():MG_ELEMENT_GEOMETRIQUE(),vect(NULL)
38 {
39 }
40
41
42
43 MG_POINT::MG_POINT(MG_POINT& mdd):MG_ELEMENT_GEOMETRIQUE(),vect(NULL)
44 {
45 }
46
47
48 MG_POINT::~MG_POINT()
49 {
50 if (vect!=NULL) delete vect;
51 }
52
53 int MG_POINT::get_type(void)
54 {
55 return TYPE_ELEMENT_GEOMETRIQUE::POINT;
56 }
57
58
59 BOITE_3D MG_POINT::get_boite_3D(void)
60 {
61 double xyz[3];
62 evaluer(xyz);
63
64 BOITE_3D boite(xyz[0],xyz[1],xyz[2],xyz[0],xyz[1],xyz[2]);
65 return boite;
66
67 }
68
69 VCT& MG_POINT::get_vectorisation(void)
70 {
71 if (vect==NULL) vect=new VCT_POINT(this);
72 return *vect;
73 }