ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/toIbrep/src/toibrep_point.cpp
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (14 years, 10 months ago) by francois
Original Path: magic/lib/toxfem/src/toxfem_point.cpp
File size: 905 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# User Rev Content
1 francois 106 #include "gestionversion.h"
2     #include "toxfem_point.h"
3     #include "mg_element_topologique.h"
4    
5    
6    
7     unsigned long TOXFEM_POINT::idmax=0;
8    
9    
10    
11     TOXFEM_POINT::TOXFEM_POINT(double xx,double yy, double zz,MG_ELEMENT_TOPOLOGIQUE* element):id(idmax),x(xx),y(yy),z(zz),ele(element)
12     {
13     idmax++;
14     }
15    
16     TOXFEM_POINT::~TOXFEM_POINT()
17     {
18     }
19    
20    
21    
22     unsigned long TOXFEM_POINT::get_id(void)
23     {
24     return id;
25     }
26    
27    
28     void TOXFEM_POINT::get_coord3(double *xyz)
29     {
30     xyz[0]=x;
31     xyz[1]=y;
32     xyz[2]=z;
33     }
34    
35     void TOXFEM_POINT::get_coord2(double *uv)
36     {
37     uv[0]=u;
38     uv[1]=v;
39     }
40    
41     void TOXFEM_POINT::change_coord2(double *uv)
42     {
43     u=uv[0];
44     v=uv[1];
45     }
46    
47     MG_ELEMENT_TOPOLOGIQUE* TOXFEM_POINT::get_mg_element_topologique(void)
48     {
49     return ele;
50     }
51    
52     void TOXFEM_POINT::get_normal(double *nor)
53     {
54     nor[0]=n[0];
55     nor[1]=n[1];
56     nor[2]=n[2];
57     }
58    
59     void TOXFEM_POINT::change_normal(double *nor)
60     {
61     n[0]=nor[0];
62     n[1]=nor[1];
63     n[2]=nor[2];
64     }
65    
66     void TOXFEM_POINT::remisecompteurid(void)
67     {
68     idmax=0;
69     }