ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/rec_sommet.cpp
Revision: 740
Committed: Wed Sep 30 22:24:50 2015 UTC (9 years, 7 months ago) by couturad
File size: 1120 byte(s)
Log Message:
Ajout d'assemblage dans un arbre caractéristique
Modification de la gestion des id de occ avec retro-compatibilité
script adaptable au assemblage

File Contents

# User Rev Content
1 5 //---------------------------------------------------------------------------
2     #include "gestionversion.h"
3    
4     #pragma hdrstop
5    
6 francois 481 #include "occ_fonction.h"
7     #include "rec_sommet.h"
8 5 #include "fem_noeud.h"
9     #include "fem_maillage.h"
10    
11     //---------------------------------------------------------------------------
12    
13     #pragma package(smart_init)
14    
15    
16    
17 couturad 740 REC_SOMMET::REC_SOMMET(FEM_MAILLAGE* mgmai, int Idealise, OCC_FONCTION_RECONSTRUCTION& fonc): REC_BREP(mgmai, Idealise, fonc)
18 5 {
19    
20     }
21    
22     REC_SOMMET::~REC_SOMMET()
23     {
24    
25     }
26    
27    
28 louhichi 211 void REC_SOMMET::Reconstruire(MG_SOMMET* Sommet, double coef)
29 5 {
30    
31 louhichi 211 //OCC_FONCTION fonction;
32 5
33     int nb_noeud = Sommet->get_lien_fem_maillage()->get_nb();
34     FEM_NOEUD* noeud0;
35     for (int i =0; i<nb_noeud;i++)
36     {
37     FEM_NOEUD* noeud =(FEM_NOEUD*)Sommet->get_lien_fem_maillage()->get(i);
38 louhichi 211 if (!fem_maillage->contient(noeud)) continue;
39 5 noeud0 = noeud;
40     }
41    
42 louhichi 211 double x_sommet = noeud0->get_x(coef);
43     double y_sommet = noeud0->get_y(coef);
44     double z_sommet = noeud0->get_z(coef);
45 5
46    
47     }
48    
49    
50     void REC_SOMMET::Enregistrer(char *path)
51     {
52    
53     }
54    
55    
56    
57    
58    
59    
60    
61    
62    
63    
64