ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/poly_occ/src/poly_cellule.cpp
Revision: 979
Committed: Thu Oct 18 23:40:32 2018 UTC (6 years, 6 months ago) by francois
Original Path: poly_occ/src/poly_cellule.cpp
File size: 865 byte(s)
Log Message:
creation de polycristaux avec OCC

File Contents

# User Rev Content
1 francois 979 #include "poly_cellule.h"
2     #include "poly_noeud.h"
3     #include "poly_face.h"
4    
5     Poly_Cellule::Poly_Cellule()
6     {
7     }
8    
9     Poly_Cellule::Poly_Cellule(std::vector<Poly_Noeud*> noeuds, std::vector<Poly_Face*> faces): list_noeud(noeuds), list_face(faces)
10     {
11     }
12    
13     Poly_Cellule::Poly_Cellule(Poly_Cellule& mdd): list_noeud(mdd.list_noeud), list_face(mdd.list_face)
14     {
15     }
16    
17     Poly_Cellule::~Poly_Cellule()
18     {
19     }
20    
21     //
22     // GET
23     //
24     Poly_Noeud* Poly_Cellule::get_noeud(int num){ return list_noeud[num]; }
25     Poly_Face* Poly_Cellule::get_face(int num){ return list_face[num]; }
26    
27     //
28     // ADD
29     //
30     void Poly_Cellule::add_noeud(Poly_Noeud* newNoeud){ list_noeud.push_back(newNoeud); }
31     void Poly_Cellule::add_face(Poly_Face* newFace){ list_face.push_back(newFace); }
32    
33     //
34     // GET_NB
35     //
36     int Poly_Cellule::get_nb_noeud(void){ return list_noeud.size(); }
37     int Poly_Cellule::get_nb_face(void){ return list_face.size(); }
38