ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/sq_noeud.cpp
Revision: 1015
Committed: Fri Apr 5 19:26:01 2019 UTC (6 years, 1 month ago) by amroune
File size: 959 byte(s)
Log Message:
- Ajout de la fonction "creation_espaces_voisinage"

File Contents

# User Rev Content
1 amroune 999 #include "sq_noeud.h"
2    
3 amroune 1015
4 amroune 999 SQ_NOEUD::SQ_NOEUD(unsigned long num,MG_ELEMENT_TOPOLOGIQUE* topo,double xx,double yy,double zz,int origine):MG_NOEUD(num,topo,xx,yy,zz,origine)
5     {
6 amroune 1002 dir.change_x(0.);
7     dir.change_y(0.);
8     dir.change_z(0.);
9 amroune 999 }
10    
11    
12    
13     SQ_NOEUD::SQ_NOEUD(MG_ELEMENT_TOPOLOGIQUE* topo,double xx,double yy,double zz,int origine):MG_NOEUD(topo,xx,yy,zz,origine)
14     {
15 amroune 1002 dir.change_x(0.);
16     dir.change_y(0.);
17     dir.change_z(0.);
18 amroune 999 }
19    
20    
21    
22     SQ_NOEUD::SQ_NOEUD(SQ_NOEUD& mdd):MG_NOEUD(mdd)
23     {
24 amroune 1002 normal_section=mdd.normal_section;
25     dir=mdd.dir;
26 amroune 999 }
27    
28    
29    
30     SQ_NOEUD::~SQ_NOEUD()
31     {
32     }
33    
34    
35    
36     OT_VECTEUR_3D SQ_NOEUD::get_normal_section()
37     {
38     return normal_section;
39     }
40    
41    
42    
43 amroune 1002 OT_VECTEUR_3D SQ_NOEUD::get_dir()
44 amroune 999 {
45 amroune 1002 return dir;
46 amroune 999 }
47    
48    
49    
50 amroune 1002 OT_VECTEUR_3D SQ_NOEUD::get_dir_suiv()
51 amroune 999 {
52 amroune 1002 return dir&normal_section;
53 amroune 999 }
54    
55    
56    
57     void SQ_NOEUD::change_normal_section(OT_VECTEUR_3D norm)
58     {
59     normal_section=norm;
60     }
61    
62    
63    
64    
65 amroune 1002 void SQ_NOEUD::change_dir(OT_VECTEUR_3D vec)
66 amroune 999 {
67 amroune 1002 dir=vec;
68 amroune 999 }